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

4.5.19 Mix_PlayingMusic

int Mix_PlayingMusic()

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

Returns: Zero if the music is not playing, or 1 if it is playing.

 
// check if music is playing
printf("music is%s playing.\n", Mix_PlayingMusic()?"":" not");

See Also:
4.5.20 Mix_PausedMusic, 4.5.21 Mix_FadingMusic, 4.5.5 Mix_PlayMusic



This document was generated on November, 13 2009 using texi2html