C4 Engine
C4 Engine API Documentation

SoundMgr::SetMasterVolume

Defined in:  C4Sound.h
Sets the master volume that is applied to all sounds.
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

SoundMgr::GetMasterVolume

SoundGroup::GetVolume

SoundGroup::SetVolume

Sound::GetSoundProperty

Sound::SetSoundProperty