SoundMgr::SetMasterVolume
Defined in:
Sets the master volume that is applied to all sounds.
C4Sound.h
Prototype
void SetMasterVolume(float volume);
Parameters
volume |
The new master volume. |
Description
The SetMasterVolume
function sets the master volume that is applied to all sounds. The volume of any particular sound is determined by multiplying the master volume by the sound's group volume, if any, and by the volume of the sound itself.A volume setting of 1.0 represents full intensity and a volume setting of 0.0 represents silence. The master volume is initially set to 1.0.
See Also