Sound::SetSoundGroup
Defined in:
Sets a sound's group.
C4Sound.h
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