C4 Engine
C4 Engine API Documentation

Sound::SetSoundGroup

Defined in:  C4Sound.h
Sets a sound's group.
Prototype

void SetSoundGroup(SoundGroup *group);

Parameters
group The group to which the sound should be made a member. This can be nullptr.
Description
The SetSoundGroup function sets a sound's group to that given by the group parameter. If the group parameter is nullptr, then the sound is not a member of any group.

When a sound is loaded using the Sound::LoadSound function, it is added to the default sound group, specified with the SoundMgr::SetDefaultSoundGroup function.
See Also

Sound::GetSoundGroup

SoundMgr::SetDefaultSoundGroup

SoundGroup