Sound::DelaySound
Defined in:
Plays a sound after a given delay time.
C4Sound.h
Prototype
void DelaySound(int32 time);
Parameters
time |
The delay time, in milliseconds. |
Description
Calling DelaySound
schedules the sound object to be played after time
milliseconds have elapsed. Once the delay period has passed, the sound is played just as if the Sound::PlaySound
function had been called.If the
Sound::StopSound
function is called for a sound that is scheduled to play because the DelaySound
function was previously called, then the play command is canceled. If the Sound::PauseSound
function is called for a sound that is scheduled to play, then the time between the first Sound::PauseSound
call and the balancing Sound::ResumeSound
call is not counted against the delay time. That is, the delay is paused as if the sound was playing silence until it was scheduled to begin playing.
See Also