BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_SampleGetChannelCount Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves the number of existing sample's channels.

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

public static int BASS_SampleGetChannelCount(
	int handle
)

Parameters

handle
Type: SystemInt32
Handle of the sample.

Return Value

Type: Int32
If successful, the number of existing channels is returned, else -1 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

If you need to determine whether a particular sample channel still exists, it is simplest to just try it in a function call, eg. BASS_ChannelGetAttribute(Int32, BASSAttribute, Single).

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not a valid sample handle.

See Also

Reference