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).
% ./plume3d audio_reverb_demoPress Next reverb preset to move Off → Cave → Hangar → Underwater → Concert Hall. The music tail changes with the space.
What it does
Section titled “What it does”- Loads
sounds/TheFieldOfDreams.mp3(looping) and routes it toMixer.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.
Key pattern
Section titled “Key pattern”import "engine" for Mixer
var music = Mixer.group("Music")music.clearEffects()music.addReverbPreset("Cave") // the whole Music bus is now in a cave- Mixer —
group.addReverbPreset,clearEffects,effectCount;MixerEffect. - Audio — the looping music source.
- Gui — the preset button.
Related
Section titled “Related”- Example: Audio Effects — the rest of the EFX suite (echo, chorus, distortion, …) and serial chains, same music bus.