mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix acoustics effects doesn't turn off
This commit is contained in:
parent
21951770ea
commit
7f4878e2b6
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue