fix acoustics effects doesn't turn off

This commit is contained in:
clasher113 2026-03-16 16:27:55 +02:00
parent 21951770ea
commit 7f4878e2b6

View file

@ -190,6 +190,10 @@ void audio::initialize(
audio::get_channel(channel.name)->setVolume(value * value);
}, true));
}
objects_keeper.keepAlive(settings.acousticEffects.observe([=](auto value) {
if (value) return;
backend->setAcoustics(audio::Acoustics {});
}, true));
if (inputEnabled) {
::input_device = backend->openInputDevice("", 44100, 1, 16);