Module audio

Expand description

Shared first-party audio core; platform output lives in ferravex-render.

Structs§

AcousticProfile
AcousticScene
AcousticTransition
An allocation-free, opt-in transition between room/occlusion profiles.
AcousticZone
AdaptiveScore
Two phase-aligned original stems. Starts/restarts both together after host suspension and crossfades gains on musical bars without restarting cursors.
Clip
GameAudio
Local gameplay audio with explicit suspension, independent of simulation time.
MixStats
Mixer
MusicConductor
MusicFrame
OutputStats
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
listener
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.
set_bus_gain
set_master_gain
set_muted
set_params
stats
stop
stop_all
suspend