Skip to main content

Module audio

Module audio 

Source
Expand description

Audio system (feature-gated behind audio feature).

Provides:

  • Spatial audio — 2D positional sound with distance falloff
  • Music & SFX channels — separate volume controls
  • Fade in/out — smooth volume transitions
  • Sound pooling — avoid allocating duplicate sounds

Built on rodio for cross-platform audio output.

Structs§

AudioManager
The audio manager controls playback, volume, and spatial audio.
Sound
A loaded sound effect.

Enums§

AudioChannel
Master volume channels.
Fade
Fade configuration for play commands.