C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

class Source

Defined in:  C4Sources.h
The Source class represents a sound source node in a scene graph.
Definition

class Source : public Node, public ListElement<Source>, public Completable<Source>

Member Functions
Source::GetSourceType Returns the specific type of a sound source.
Constructor

Source(SourceType type, bool persistent);

The constructor has protected access. A Source class can only exist as the base class for a more specific type of sound source.
Parameters
type The type of the sound source. See below for a list of possible types.
persistent A boolean value indicating whether the sound source persists after it plays.
Description


kSourceAmbient Ambient sound source.
kSourceOmni Omnidirectional sound source.
kSourceDirected Directed sound source.
Base Classes
Node A Source node is a scene graph node.
ListElement<Source> Used internally by the World Manager.
Completable<Source> The completion procedure is called when the sound finishes playing.
See Also
SourceObject