SDL_image 1.2.4: Mix_FadingMusic

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

### 4.5.19 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.18 Mix_PausedMusic, 4.5.17 Mix_PlayingMusic, 4.5.5 Mix_FadeInMusicPos, 4.5.14 Mix_FadeOutMusic

This document was generated on November, 1 2002 using texi2html