TimelineAudioVoices
Defined in: sdk/src/timeline/timelineAudio.ts:45
The audio clips of every playing timeline, by player.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TimelineAudioVoices():
TimelineAudioVoices
Returns
Section titled “Returns”TimelineAudioVoices
Methods
Section titled “Methods”count()
Section titled “count()”count(
player):number
Defined in: sdk/src/timeline/timelineAudio.ts:111
How many voices player has now: for tests and the profiler.
Parameters
Section titled “Parameters”player
Section titled “player”number
Returns
Section titled “Returns”number
stop()
Section titled “stop()”stop(
player):void
Defined in: sdk/src/timeline/timelineAudio.ts:98
Stops every voice player has (it was despawned, or its timeline changed).
Parameters
Section titled “Parameters”player
Section titled “player”number
Returns
Section titled “Returns”void
stopAll()
Section titled “stopAll()”stopAll():
void
Defined in: sdk/src/timeline/timelineAudio.ts:106
Stops every voice of every player.
Returns
Section titled “Returns”void
sync()
Section titled “sync()”sync(
player,asset,time,playing,audio):void
Defined in: sdk/src/timeline/timelineAudio.ts:53
Brings player’s voices in line with asset at time. playing false pauses them where they are; audio
null (no audio in this build) does nothing.
Parameters
Section titled “Parameters”player
Section titled “player”number
number
playing
Section titled “playing”boolean
AudioAPI | null
Returns
Section titled “Returns”void