C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

class SourceObject

Defined in:  C4Sources.h
The SourceObject class encapsulates data pertaining to a sound source.
Definition

class SourceObject : public Object

Member Functions
SourceObject::GetSourceType Returns the specific type of a source.
SourceObject::GetSourceFlags Returns the source flags.
SourceObject::SetSourceFlags Sets the source flags.
Constructor

SourceObject(SourceType type, const char *name);

The constructor has protected access. The SourceObject class can only exist as the base class for another class.
Parameters
type The type of the sound source. See below for a list of possible types.
name The name of the sound resource associated with the source.
Description


kSourceAmbient Ambient sound source.
kSourceOmni Omnidirectional sound source.
kSourceDirected Directed sound source.
Base Classes
Object A source object is an object that can be shared by multiple source nodes.
See Also

Source