Skip to main content

Module audio

Module audio 

Source
Expand description

Display-independent audio buses, settings, and frame-clock gain envelopes.

Structs§

AudioBuses
Flat named buses under master; music/sfx are available by default. Muting affects gain only; envelopes and stream clocks continue advancing.
AudioError
Invalid audio controls. Invalid operations preserve the previous state.
AudioSettings
Bus settings keyed by stable names, independent of run-local handles. The game owns the save schema; this type performs no filesystem I/O.
BusId
A bus in one mixer. Handles must not be shared between mixers or runs.
BusSettings
User-controlled bus values suitable for a game-owned versioned save payload.
GainFade
Linear amplitude envelope with saturating, integer-duration frame timing.

Functions§

validate_gain
Validates a finite gain in the inclusive range 0..=1.