Mix_Paused -- Tells you if channel is paused, or not.


#include "SDL_mixer.h"

int Mix_Paused(int which);


Mix_Paused tells you if channel is paused, or not.

Return Value

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

Note: Does not check if the channel has been halted after it was paused, which may seem a little weird.


// check the pause status on all channels
printf("%d channels are paused\n", Mix_Paused(-1));

See Also

Mix_Playing, Mix_Pause, Mix_Resume

Mix_Paused (last edited 2008-04-17 08:18:09 by localhost)