Skip to content

AudioPlayOptions

Defined in: audio/src/types.ts:16

optional channel?: string

Defined in: audio/src/types.ts:17


optional loop?: boolean

Defined in: audio/src/types.ts:19


optional onEnd?: () => void

Defined in: audio/src/types.ts:27

Called once when the sound finishes on its own (its end event). NOT called when you stop() it, and never for a looping sound (it has no end). The “tell me when this clip is done” seam — e.g. gating dialogue auto-advance on a voice clip.

void


optional speed?: number

Defined in: audio/src/types.ts:20


optional volume?: number

Defined in: audio/src/types.ts:18