C4 Engine Terathon Software C4 Engine API Documentation

• Sound Manager

API Links
Developer Links

Sound::SetSoundFlags

Defined in:  C4Sound.h
Sets the sound flags.
Prototype

void SetSoundFlags(unsigned long flags);

Parameters
flags The new sound flags.
Description
The SetSoundFlags function sets the sound flags to the value specified by the type parameter, which can be a combination (through logical OR) of the following values.
kSoundPersistent The sound object continues to exist after it finishes playing.
kSoundSpatialized The sound is localized and 3D spatialization effects are applied. All other flags are ignored if this is not set.
kSoundDopplerShift The Doppler effect is applied to the sound based on the velocity relative to the listener and the global speed of sound.
kSoundDistanceDelay The sound is delayed based on distance from the listener and the global speed of sound.
kSoundReverb Reflection and reverberation effects are applied to the sound based on the room properties associated with the sound.
kSoundCones The sound is directional, and cone attenuation is applied.
See Also

Sound::GetSoundFlags