Stop playing channel after timed fade out
The number of channels set to fade out.
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.
Binds to C-function in SDL_mixer.h
int Mix_FadeOutChannel(int which, int ms)
// fade out all channels to finish 3 seconds from now printf("starting fade out of %d channels\n", Mix_FadeOutChannel(-1, 3000));
SdlMixer Class | Tao.Sdl Namespace | Mix_FadeInChannel | Mix_FadeInChannelTimed | Mix_FadingChannel | Mix_ChannelFinished