C4 Engine
C4 Engine API Documentation

Sound::SetSoundFlags

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

void SetSoundFlags(uint32 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 constants.
kSoundPersistent The sound object continues to exist after it finishes playing.
kSoundSpatialized The sound is localized and 3D spatialization effects are applied. If this flag is not set, then all flags except kSoundPersistent are ignored.
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