BASS.NET API for the Un4seen BASS Audio Library

BassBASS_SampleStop Method

BASS.NET API for the Un4seen BASS Audio Library
Stops all instances of a sample.

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

[DllImportAttribute("bass")]
public static bool BASS_SampleStop(
	int handle
)

Parameters

handle
Type: SystemInt32
The sample handle.

Return Value

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

If a sample is playing simultaneously multiple times, calling this function will stop them all, which is obviously simpler than calling BASS_ChannelStop(Int32) multiple times.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not a valid sample handle.

See Also

Reference