Firelight Technologies FMOD Studio API
FMOD_SOUNDGROUP_BEHAVIOR
These values are used with SoundGroup::setMaxAudibleBehavior to determine what happens when more sounds are played than are specified with SoundGroup::setMaxAudible.
C/C++ Syntax
typedef enum {
FMOD_SOUNDGROUP_BEHAVIOR_FAIL,
FMOD_SOUNDGROUP_BEHAVIOR_MUTE,
FMOD_SOUNDGROUP_BEHAVIOR_STEALLOWEST,
FMOD_SOUNDGROUP_BEHAVIOR_MAX
} FMOD_SOUNDGROUP_BEHAVIOR;
JavaScript Syntax
FMOD.SOUNDGROUP_BEHAVIOR_FAIL
FMOD.SOUNDGROUP_BEHAVIOR_MUTE
FMOD.SOUNDGROUP_BEHAVIOR_STEALLOWEST
FMOD.SOUNDGROUP_BEHAVIOR_MAX
FMOD.SOUNDGROUP_BEHAVIOR_FORCEINT
Values
FMOD_SOUNDGROUP_BEHAVIOR_FAIL
Any sound played that puts the sound count over the SoundGroup::setMaxAudible setting, will simply fail during System::playSound.
FMOD_SOUNDGROUP_BEHAVIOR_MUTE
Any sound played that puts the sound count over the SoundGroup::setMaxAudible setting, will be silent, then if another sound in the group stops the sound that was silent before becomes audible again.
FMOD_SOUNDGROUP_BEHAVIOR_STEALLOWEST
Any sound played that puts the sound count over the SoundGroup::setMaxAudible setting, will steal the quietest / least important sound playing in the group.
FMOD_SOUNDGROUP_BEHAVIOR_MAX
Maximum number of sound group behaviors.
Remarks
When using FMOD_SOUNDGROUP_BEHAVIOR_MUTE, SoundGroup::setMuteFadeSpeed can be used to stop a sudden transition. Instead, the time specified will be used to cross fade between the sounds that go silent and the ones that become audible.
See Also
- SoundGroup::setMaxAudibleBehavior
- SoundGroup::getMaxAudibleBehavior
- SoundGroup::setMaxAudible
- SoundGroup::getMaxAudible
- SoundGroup::setMuteFadeSpeed
- SoundGroup::getMuteFadeSpeed
Version 1.10.03 Built on Feb 1, 2018