Table of Contents | ||||||||
|
||||||||
FadeOut | ||||||||
Purpose Fades a sound out |
||||||||
Protoype void CSoundMngr::FadeOut (string str_music, int i_vol = VOLUME_MIN, int i_step = 5, bool b_remove = false) |
||||||||
Parameters
|
||||||||
Description This function fades a music object in from its current volume level to the level specified with i_vol. You can tell it how fast you want to fade the sound out by modifying the i_step value (value must be positive). If you want this effect immediatly removed from the effects queue upon completion, then you can pass in TRUE for b_remove. If, however, you want to be able to call FadeComplete() to check for the effects completion, then you should pass in FALSE instead. Caution: passing in FALSE means the effect will remain in the queue until FadeComplete() is called, so make sure that actually happens.
|
||||||||
Use CSoundMngr sound; sound.FadeOut("my_music", 200); |
||||||||
|
||||||||
|