Tao.Sdl SDK Documentation |
|
SdlMixer.Mix_Paused Method
Get the pause status of a channel
[Visual Basic]
Public Shared Function Mix_Paused( _
ByVal
channel As
Integer _
) As
Integer
[C#]
public static
int Mix_Paused(
int channel);
Parameters
-
channel
- Channel to test whether it is paused or not. -1 will tell you how many channels are paused.
Return Value
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.
Remarks
Tells you if channel is paused, or not. Note: Does not check if the channel has been halted after it was paused, which may seem a little weird.
Binds to C-function in SDL_mixer.h
int Mix_Paused(int channel)
Example
// check the pause status on all channels
printf("%d channels are paused\n", Mix_Paused(-1));
See Also
SdlMixer Class | Tao.Sdl Namespace | Mix_Playing | Mix_Pause | Mix_Resume