BASS.NET API for the Un4seen BASS Audio LibraryBassWasapiBASS_WASAPI_Stop Method BASS.NET API for the Un4seen BASS Audio Library
Stops the current Wasapi device/driver (endpoint).

Namespace: Un4seen.BassWasapi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

[DllImportAttribute("basswasapi.dll", CharSet = CharSet.Auto)]
public static bool BASS_WASAPI_Stop(
	bool reset
)

Parameters

reset
Type: SystemBoolean
Flush the device buffer?

will clear the output buffer. Otherwise it is like pausing, eg. BASS_WASAPI_Start will resume playing the buffered data.

Return Value

Type: Boolean
If successful, then is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

If the device buffer is left unflushed (reset=FALSE), a subsequent BASS_WASAPI_Start call will resume things with the buffered data, otherwise it will resume with fresh data.

When using multiple devices, the current thread's device setting (as set with BASS_WASAPI_SetDevice(Int32)) determines which device this function call applies to.

ERROR CODEDescription
BASS_ERROR_INITBASS_WASAPI_Init(Int32, Int32, Int32, BASSWASAPIInit, Single, Single, WASAPIPROC, IntPtr) has not been successfully called.
BASS_ERROR_STARTThe device hasn't been started.
BASS_ERROR_UNKNOWNSome other mystery problem!

See Also

Reference