Skip to content

API Interface AudioSnapshot

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

Interface: AudioSnapshot

Defined in: src/plugins/audio/runtime/mix/scriptMix.ts:35

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/mix/scriptMix.ts:40

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


exists

readonly exists: boolean;

Defined in: src/plugins/audio/runtime/mix/scriptMix.ts:38

The project has a snapshot by this name.


name

readonly name: string;

Defined in: src/plugins/audio/runtime/mix/scriptMix.ts:36

Methods

start()

start(fadeSeconds?): void;

Defined in: src/plugins/audio/runtime/mix/scriptMix.ts:42

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/mix/scriptMix.ts:44

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