Expand description
Shared runtime audio. Rust owns clips, voices and mixing; hosts consume PCM.
Modules§
- batch
- Bounded presentation-frame batching of caller-accepted events.
Structs§
- Acoustic
Profile - Acoustic
Scene - Acoustic
Transition - An allocation-free, opt-in transition between room/occlusion profiles.
- Acoustic
Zone - Adaptive
Score - Two phase-aligned original stems. Starts/restarts both together after host suspension and crossfades gains on musical bars without restarting cursors.
- Clip
- Game
Audio - Local gameplay audio with explicit suspension, independent of simulation time.
- MixStats
- Mixer
- Music
Conductor - Music
Frame - Output
Stats - 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.
- Sound
Bank - Voice
Handle - Voice
Params - Voice
Policy - Opt-in reservation using the existing
VoiceParams::priorityscale.
Enums§
- Acoustic
Transition Error - Invalid input to an
AcousticTransition. Errors leave its state unchanged. - Bus
- Cue
- Spatial
- Surface
- Voice
Admission - Explicit admission result, including the invalidated handle after a steal.
See
Mixer::start_with_outcomefor a compiling example. - Voice
Rejection - Why
Mixer::start_with_outcomedid not admit a voice.
Constants§
- MAX_
CLIP_ FRAMES - Maximum decoded interleaved-stereo storage: 64 MiB, also bounded to 10 minutes.
- MAX_
PULL_ FRAMES - SAMPLE_
RATE
Functions§
- bus_
gains - encode_
wav - listener
- master_
gain - music_
stems - Original short synchronized stems, synthesized at setup; no asset download.
- muted
- output_
stats - play
- play_
sound - playing
- preload_
cues - Generate the built-in bank outside a frame/audio callback when desired.
- render
- For a host output callback, limited to 4096 frames and a valid device rate. This runs on the game/Wasm thread; devices never borrow this mixer directly.
- set_
bus_ gain - set_
master_ gain - set_
muted - set_
params - stats
- stop
- stop_
all - suspend