Module audio

Source
Expand description

First-party validated PCM clips, procedural cues and a bounded spatial mixer. Hosts supply sample output; no platform calls or unsafe code live here.

Mixer::fade_bus_gain and Mixer::fade_master_gain provide sample-timed volume transitions independent of voice smoothing. Fade to zero for silence while keeping playback time; retarget or cancel a fade without a gain jump. Immediate set_bus_gain/set_master_gain controls remain available.

Structs§

AcousticProfile
AcousticScene
AcousticTransition
An allocation-free, opt-in transition between room/occlusion profiles.
AcousticZone
Clip
MixStats
Mixer
MusicConductor
MusicFrame
Sound
A clip whose sample and metadata validation is complete. Keep a bank owner alive during real-time playback if the last Arc must not free in render.
SoundBank
VoiceHandle
VoiceParams
VoicePolicy
Opt-in reservation using the existing VoiceParams::priority scale.

Enums§

AcousticTransitionError
Invalid input to an AcousticTransition. Errors leave its state unchanged.
Bus
Cue
Spatial
Surface
VoiceAdmission
Explicit admission result, including the invalidated handle after a steal. See Mixer::start_with_outcome for a compiling example.
VoiceRejection
Why Mixer::start_with_outcome did not admit a voice.

Constants§

MAX_CLIP_FRAMES
Maximum decoded interleaved-stereo storage: 64 MiB, also bounded to 10 minutes.

Functions§

encode_wav
music_stems
Original short synchronized stems, synthesized at setup; no asset download.