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

4.3.15 Mix_FadingChannel

Mix_Fading Mix_FadingChannel(int which)

which
Channel to get the fade activity status from.
-1 is not valid, and will probably crash the program.

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.

Returns: the fading status. Never returns an error.

 
// 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:
5.4 Mix_Fading, 4.3.13 Mix_Playing, 4.3.14 Mix_Paused, 4.3.5 Mix_FadeInChannel, 4.3.6 Mix_FadeInChannelTimed, 4.3.11 Mix_FadeOutChannel



This document was generated on November, 13 2009 using texi2html