跳转到内容

TimelineAudioVoices

此内容尚不支持你的语言。

Defined in: sdk/src/timeline/timelineAudio.ts:45

The audio clips of every playing timeline, by player.

new TimelineAudioVoices(): TimelineAudioVoices

TimelineAudioVoices

count(player): number

Defined in: sdk/src/timeline/timelineAudio.ts:111

How many voices player has now: for tests and the profiler.

number

number


stop(player): void

Defined in: sdk/src/timeline/timelineAudio.ts:98

Stops every voice player has (it was despawned, or its timeline changed).

number

void


stopAll(): void

Defined in: sdk/src/timeline/timelineAudio.ts:106

Stops every voice of every player.

void


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.

number

TimelineAsset

number

boolean

AudioAPI | null

void