跳转到内容

SoundEventPlayback

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

Defined in: audio/SoundEventPlayback.ts:71

Per-App event ownership layered on Assets leases and Audio’s existing voice pool. Emitters of one canonical definition share admission across asset generations. Cooldown starts on admission, including later load/global-pool failures; stopping does not reset it.

new SoundEventPlayback(audio, resources, ownerAlive?, ownerPosition?): SoundEventPlayback

Defined in: audio/SoundEventPlayback.ts:89

AudioAPI

() => Resources | null

(owner) => boolean

(owner) => Vec3 | null

SoundEventPlayback

dispose(): void

Defined in: audio/SoundEventPlayback.ts:172

void


getStats(): SoundEventStats

Defined in: audio/SoundEventPlayback.ts:161

SoundEventStats


load(ref, options?): Promise<SoundEventEmitter | null>

Defined in: audio/SoundEventPlayback.ts:100

Loading a definition is preparation, not a play intent; Audio.stopAll does not unload emitters. alive is a pure lifetime predicate checked after asynchronous loads and on updates/triggers.

string

() => boolean

number

number

Promise<SoundEventEmitter | null>


stopAll(): void

Defined in: audio/SoundEventPlayback.ts:156

void


stopOwner(owner): void

Defined in: audio/SoundEventPlayback.ts:145

number

void


update(delta, listener?, right?): void

Defined in: audio/SoundEventPlayback.ts:133

Advance on simulation time; paused requests retain event and global voice ownership.

number

Vec3

Vec3

void