sound_volume(ind,vol)

From ENIGMA
Jump to navigation Jump to search

Description

Sets the volume of the given sound.

Parameters

Parameter Data Type Description
ind integer index of the sound to set the volume of
vol float the volume level of the sound, 0 to 1

Return Values

void: This function does not return anything

Example Call

// demonstrates setting the volume of a sound
sound_volume(snd_shoot, 0.5);