Documentation

Audio

Spatial audio playback and reverb zones via miniaudio.

Audio System

Audio is handled by AudioSystem (miniaudio):

  • Spatialized sources with rolloff settings.
  • Play/stop/loop controls.
  • Preview playback from the editor.
  • Reverb zones with blending based on listener position.

AudioSource Component

Properties:

  • Clip Path - Path to audio file
  • Volume - Playback volume (0.0 - 1.0)
  • Spatial - Enable 3D audio positioning
  • Rolloff - Distance attenuation settings
  • Loop - Whether to loop playback

Reverb Zones

Reverb zones allow you to create areas with different acoustic properties.

ReverbZone Component

  • Shape - Zone geometry (sphere, box)
  • Blend Distance - Distance over which reverb blends
  • Preset - Predefined reverb settings
  • Custom Parameters - Manual reverb configuration

Blending Behavior

Reverb is blended based on the listener position. When the listener enters a reverb zone, the reverb settings are smoothly interpolated based on the blend distance.