Mix_FadingChannel
Name
Mix_FadingChannel -- Tells you if a channel is fading in, out, or not.
Synopsis
#include "SDL_mixer.h" Mix_Fading Mix_FadingChannel(int which);
Description
Mix_FadingChannel 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.
Parameters
- which
- Channel to get the fade activity status from.
- -1 is not valid, and will probably crash the program.
Return Value
Returns the fading status. Never returns an error.
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
Mix_Fading, Mix_Playing, Mix_Paused, Mix_FadeInChannel, Mix_FadeInChannelTimed, Mix_FadeOutChannel
