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

4.3.11 Mix_FadeOutChannel

int Mix_FadeOutChannel(int channel, int ms)

channel
Channel to fade out, or -1 to fade all channels out.
ms
Milliseconds of time that the fade-out effect should take to go to silence, starting now.

Gradually fade out which channel over ms milliseconds starting from now. The channel will be halted after the fade out is completed. Only channels that are playing are set to fade out, including paused channels. Any callback set by Mix_ChannelFinished will be called when the channel finishes fading out.

Returns: The number of channels set to fade out.

 
// fade out all channels to finish 3 seconds from now
printf("starting fade out of %d channels\n", Mix_FadeOutChannel(-1, 3000));

See Also:
4.3.5 Mix_FadeInChannel, 4.3.6 Mix_FadeInChannelTimed, 4.3.15 Mix_FadingChannel, 4.3.12 Mix_ChannelFinished



This document was generated on November, 13 2009 using texi2html