sound_fade(index,value,time)

From ENIGMA
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

Sets a new volume level for the indicated sound which will be faded to over the given amount of time.

Parameters

Parameter Data Type Description
index integer index of the sound to fade
value float the volume to fade to
time integer duration of the fade, in milliseconds

Return Values

void: This function does not return anything.

Example Call

// demonstrates fading a sound to half volume in one second
sound_fade(snd_shoot, 0.5, 1000);