Checks if a mixer source channel is active.

DWORD BASS_Mixer_ChannelIsActive(
    DWORD handle


handleThe channel handle.

Return value

The return value is one of the following.
BASS_ACTIVE_STOPPEDThe channel is not active.
BASS_ACTIVE_PLAYINGThe channel is playing.
BASS_ACTIVE_PAUSEDThe channel is paused. This takes precedence when another status could also apply.
BASS_ACTIVE_STALLEDThe channel has stalled due to a lack of sample data. It will automatically resume when more data is available.
BASS_ACTIVE_WAITINGThe channel is waiting to start because it was delayed by BASS_Mixer_StreamAddChannelEx.
BASS_ACTIVE_QUEUEDThe channel is waiting in a queue.


This function gives the status of a source channel as the mixer currently sees it, which may be ahead of what is heard if the mixer is playing due to buffering. The source channel's status is unaffected by the mixer's status, eg. whether it is playing or stopped.

A BASS_SYNC_STALL sync can be set via BASS_Mixer_ChannelSetSync to be notified when a channel stalls/resumes.

See also

BASS_Mixer_ChannelFlags, BASS_Mixer_ChannelSetSync