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

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

Mix_FadingChannel (last edited 2008-04-17 08:18:11 by localhost)