SDL_Function
Name
Mix_FadeInChannel -- Fades in a channel
Synopsis
#include "SDL_mixer.h" int Mix_FadeInChannel(int channel, Mix_Chunk *chunk, int loops, int ms);
Description
Mix_FadeInChannel functions like Mix_PlayChannel but with a smooth fade in effect. -1 for channel will cause the sound to be played in any available channel. -1 in loops will cause the music to loop forever. The number of miliseconds for the fade in duration can be specified in the ms parameter of the function.
Return Value
Returns the channel that the chunk will be played on.
Example
Mix_Chunk *sound = Mix_LoadWAV("some-sound-effect.wav");
Mix_FadeInChannel(-1, sound, 0, 1000);
