[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.3.13 Mix_Playing

int Mix_Playing(int channel)

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

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

Returns: 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.

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

See Also:
4.3.14 Mix_Paused, 5.4 Mix_Fading, 4.3.3 Mix_PlayChannel, 4.3.7 Mix_Pause,



This document was generated on November, 13 2009 using texi2html