Speaker

The Speaker class encapsulates an speaker for a scene. Old class name is AudioSource.

Properties

PropertyDescription

volume

Methods

MethodDescription

play

play(): void

Creates a new playing instance of the sound associated with this AudioSource.

stopAll

stopAll(speaker: Speaker): void

Stops all playing instances of this AudioSource.