Tao.Sdl SDK Documentation |
|
SdlMixer.Mix_FadingChannel Method
Get the fade status of a channel
[Visual Basic]
Public Shared Function Mix_FadingChannel( _
ByVal
which As
Integer _
) As
Integer
[C#]
public static
int Mix_FadingChannel(
int which);
Parameters
-
which
- Channel to get the fade activity status from. -1 is not valid, and will probably crash the program.
Return Value
the fading status. Never returns an error.
Remarks
Tells you if which channel is fading in, out, or not. Does not tell you if the channel is playing anything, or paused, so you'd need to test that separately.
Binds to C-function in SDL_mixer.h
Mix_Fading Mix_FadingChannel(int which)
Example
// check the fade status on channel 0
switch(Mix_FadingChannel(0))
{
case MIX_NO_FADING:
printf("Not fading.\n");
break;
case MIX_FADING_OUT:
printf("Fading out.\n");
break;
case MIX_FADING_IN:
printf("Fading in.\n");
break;
}
See Also
SdlMixer Class | Tao.Sdl Namespace | Mix_Paused | Mix_Playing | Mix_FadeInChannel | Mix_FadeInChannelTimed | Mix_FadeOutChannel