SuperTux / supertux

SuperTux source code
https://supertux.org
GNU General Public License v3.0
2.5k stars 475 forks source link

Reverb effects #1678

Open HybridDog opened 3 years ago

HybridDog commented 3 years ago

For caves, castles and rooms, configurable reverb effects could make the game more immersive I think.

For example, here are videos without and with reverb (I used freeverb3): https://user-images.githubusercontent.com/3192173/108993578-13da1580-769b-11eb-84c3-b0d2a412ede2.mp4 https://user-images.githubusercontent.com/3192173/108993614-1e94aa80-769b-11eb-8de1-912aa0cae1ad.mp4

It is possible to do reverb in real-time with LADSPA or LV2 plugins. For example, Pulseaudio supports applying LADSPA plugins on all sound output. I would like to have configurable reverb in SuperTux. The decision on whether the effect should also be applied on the music is a design choice, e.g. depends on the selected music.

Grumbel commented 3 years ago

OpenAL has build-in support for reverb effects, though SuperTux sound currently doesn't expose that. I have a library derived from SuperTux/Windstille sound code that exposes some more of the OpenAL functionality and allows reverb effects and some other stuff (Opus and mod support). Shouldn't be too hard to integrate if desired:

https://gitlab.com/Windstille/wstsound

Semphriss commented 3 years ago

I remember about another suggestion to implement audio effects, though I can't find the issue number. If no one else would like to take the job, I'm up for it.