C4 Engine
C4 Engine API Documentation

class Source

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

class Source : public Node, public Completable<Source>

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

Source(SourceType type, bool persistent);

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.
Completable<Source> The completion callback is called when the sound finishes playing.
See Also

SourceObject

Wiki Articles

Sources