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

4.5.21 Mix_FadingMusic

Mix_Fading Mix_FadingMusic()

Tells you if music is fading in, out, or not at all. 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 music fade status
switch(Mix_FadingMusic()) {
    case MIX_NO_FADING:
        printf("Not fading music.\n");
        break;
    case MIX_FADING_OUT:
        printf("Fading out music.\n");
        break;
    case MIX_FADING_IN:
        printf("Fading in music.\n");
        break;
}

See Also:
5.4 Mix_Fading, 4.5.20 Mix_PausedMusic, 4.5.19 Mix_PlayingMusic, 4.5.7 Mix_FadeInMusicPos, 4.5.16 Mix_FadeOutMusic



This document was generated on November, 13 2009 using texi2html