[]
Represents an action that plays a sound.
new ActionSound(om): ActionSound;
Creates a new ActionSound.
ObjectManager that controls the lifetime of the ActionSound.
ActionSound
ActionBase.constructor
new ActionSound(): ActionSound;
Creates a new ActionSound.
ActionSound
ActionBase.constructor
get id(): number;
Gets the reference to the object.
number
get mix(): boolean;
Gets or sets a value specifying whether to mix this sound with any other sound already playing. If false, any previously playing sound is stopped before starting this sound. The default is false.
boolean
get om(): ObjectManager;
Gets the owner ObjectManager instance.
get repeat(): boolean;
Gets or sets a value specifying whether to repeat the sound indefinitely. If true, the synchronous property is ignored. The default is false.
boolean
get sound(): SoundObject;
Gets or sets the SoundObject specifying the sound to play.
get synchronous(): boolean;
Gets or sets a value specifying whether to play the sound synchronously or asynchronously. If true, the viewer retains control until the sound has been completely played. The default is false.
boolean
get volume(): number;
Gets or sets the volume at which to play the sound, in the range from -1.0 to 1.0. The default is 1.0.
number
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
rebind(omTo): void;
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void