Table of Contents

 
FadeComplete
 

Purpose

Finds out if a clip's fade effect has finished executing

 

Protoype

bool CSoundMngr::FadeComplete (string str_music)
 

Parameters

music the ID of the music object to check
 

Description

This function will let you know when a fade is complete and will let you perform any tasks that you want when this event occurs. It will also flag the fade effect for removal from the effects queue. If the clip has finished it's effect, the function will return TRUE, otherwise it will return FALSE.

 

Use

CSoundMngr sound;
if (sound.FadeComplete("my_music"))
    // perform stuff here
 

Prev: DoSoundEffects
Next: FadeIn