C4 Engine
C4 Engine API Documentation

SoundGroup::SetVolume

Defined in:  C4Sound.h
Sets the volume of a sound group.
Prototype

void SetVolume(float volume);

Parameters
volume The new volume of the sound group. This should normally be in the range [0, 1].
Description
The SetVolume function sets the volume applied to all sounds that are members of a sound group. The value specified for the volume parameter multiplies the individual volume for each sound in a group to produce a final playback volume.

A sound is added to or removed from a sound group using the Sound::SetSoundGroup function.
See Also

SoundGroup::GetVolume

SoundGroup::GetFrequency

SoundGroup::SetFrequency

Sound::GetSoundGroup

Sound::SetSoundGroup