Tao.Sdl SDK Documentation

SdlMixer.Mix_Playing Method 

Get the active playing status of a channel

[Visual Basic]
Public Shared Function Mix_Playing( _
   ByVal channel As Integer _
) As Integer
[C#]
public static int Mix_Playing(
   int channel
);

Parameters

channel
Channel to test whether it is playing or not. -1 will tell you how many channels are playing.

Return Value

Zero if the channel is not playing. Otherwise if you passed in -1, the number of channels playing is returned. If you passed in a specific channel, then 1 is returned if it is playing.

Remarks

Tells you if channel is playing, or not. Note: Does not check if the channel has been paused.

Binds to C-function in SDL_mixer.h

int Mix_Playing(int channel)
            

Example

            // check how many channels are playing samples
            printf("%d channels are playing\n", Mix_Playing(-1));
            

See Also

SdlMixer Class | Tao.Sdl Namespace | Mix_Paused | Mix_PlayChannel | Mix_Pause