C4 Engine
C4 Engine API Documentation

SourceObject::SetSourceFlags

Defined in:  C4Sources.h
Sets the source flags.
Prototype

void SetSourceFlags(uint32 flags);

Description
The SetSourceFlags function sets the source flags to the value specified by the flags parameter, which can be a combination (through logical OR) of the following constants.
kSourceRandom The source starts playing at a random position when it becomes audible. (Ignored if the kSourceStream flag is set or if the kSourceLoop flag is not set.)
kSourceStream The source is streamed from disk.
kSourceInitialPlay The source is initially playing.
kSourceLoop The source is looping.
kSourceDopplerShift The Doppler effect is applied to the source.
kSourceDistanceDelay Distance delay is applied to the source.
kSourceReverb Reflections and reverberation are generated by the source.
kSourceObstruction The source can be obstructed by geometry.
The default flags value for a new source object is kSourceInitialPlay.
See Also

SourceObject::GetSourceFlags