Skip to content

makeAudioSystem

makeAudioSystem<TCtx>(options): SchedulableSystem<TCtx>

Defined in: src/modules/audio/audio-system.ts:156

A SchedulableSystem that drives an AudioProvider from the world’s AudioSource components plus a one-shot AudioQueue: it starts playback for a new source, restarts one whose parameters changed (a signature miss), and stops playback for a source that disappeared. Provider failures are reported to onError rather than thrown, so a bad clip cannot halt the tick.

TCtx extends AudioTickCtx

AudioSystemOptions<TCtx>

SchedulableSystem<TCtx>