Skip to content

Audio Reverb

App: apps/audio_reverb_demo/

A looping music track routed to a mixer group, with a button that cycles the group’s reverb preset — Off / Cave / Hangar / Underwater / Concert Hall (engine PLM-153 / ADR 0050). The engine builds the OpenAL EFX aux slot behind the mixer, so the music takes on each space. Needs a device with ALC_EXT_EFX (otherwise the music stays dry).

Terminal window
% ./plume3d audio_reverb_demo

Press Next reverb preset to move Off → Cave → Hangar → Underwater → Concert Hall. The music tail changes with the space.

  • Loads sounds/TheFieldOfDreams.mp3 (looping) and routes it to Mixer.group("Music").
  • On each button press, cycles a preset and calls music.clearEffects() then (for a non-Off preset) music.addReverbPreset(name).
  • The mixer tick reconciles the group’s EFX chain and points the source’s aux send at it.
import "engine" for Mixer
var music = Mixer.group("Music")
music.clearEffects()
music.addReverbPreset("Cave") // the whole Music bus is now in a cave
  • Mixergroup.addReverbPreset, clearEffects, effectCount; MixerEffect.
  • Audio — the looping music source.
  • Gui — the preset button.
  • Example: Audio Effects — the rest of the EFX suite (echo, chorus, distortion, …) and serial chains, same music bus.