Skip to content

API Interface AudioSnapshot

github-actions[bot] edited this page Nov 24, 2026 · 5 revisions

Interface: AudioSnapshot

Defined in: src/plugins/audio/runtime/Audio.ts:212

ADR 0344: a snapshot of the project's mix, as game code reaches it (Audio.snapshot(name)).

Properties

active

readonly active: boolean;

Defined in: src/plugins/audio/runtime/Audio.ts:217

It is on now: fading in, on, held, or fading out.


exists

readonly exists: boolean;

Defined in: src/plugins/audio/runtime/Audio.ts:215

The project has a snapshot by this name.


name

readonly name: string;

Defined in: src/plugins/audio/runtime/Audio.ts:213

Methods

start()

start(fadeSeconds?): void;

Defined in: src/plugins/audio/runtime/Audio.ts:219

Fade it in over its fade-in time (or fadeSeconds); the snapshots already on stay on and blend with it.

Parameters

fadeSeconds?

number

Returns

void


stop()

stop(fadeSeconds?): void;

Defined in: src/plugins/audio/runtime/Audio.ts:221

Fade it out over its fade-out time (or fadeSeconds), once its hold time is over. A base snapshot is always on.

Parameters

fadeSeconds?

number

Returns

void

Clone this wiki locally