BASS.NET API for the Un4seen BASS Audio LibraryBassMixBASS_Mixer_ChannelIsActive Method BASS.NET API for the Un4seen BASS Audio Library
Checks if a mixer source channel is active (playing) or paused.

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

public static BASSActive BASS_Mixer_ChannelIsActive(
	int handle
)

Parameters

handle
Type: SystemInt32
The handle of the mixer source channel to check (which was add via BASS_Mixer_StreamAddChannel(Int32, Int32, BASSFlag) or BASS_Mixer_StreamAddChannel(Int32, Int32, BASSFlag) or BASS_Mixer_StreamAddChannelEx(Int32, Int32, BASSFlag, Int64, Int64)) beforehand).

Return Value

Type: BASSActive
The return value is one of the folowing (see BASSActive):
BASS_ACTIVE_STOPPEDThe source is not active, or handle is not a valid mixer source channel.
BASS_ACTIVE_PLAYINGThe source is playing.
BASS_ACTIVE_PAUSEDThe source is paused.
Remarks

BASS_ACTIVE_STOPPED will not automatically be returned once the end of the source mixer channel has been reached (unless you have specified BASS_STREAM_AUTOFREE with the BASS_Mixer_StreamAddChannel(Int32, Int32, BASSFlag) or BASS_Mixer_StreamAddChannel(Int32, Int32, BASSFlag) or BASS_Mixer_StreamAddChannelEx(Int32, Int32, BASSFlag, Int64, Int64) method).

ERROR CODEDescription
BASS_ERROR_HANDLEThe channel is not plugged into a mixer.
BASS_ERROR_SPEAKERThe mixer does not support the requested speaker(s), or the channel has matrix mixing enabled.

See Also

Reference