mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +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);
|
audio::get_channel(channel.name)->setVolume(value * value);
|
||||||
}, true));
|
}, true));
|
||||||
}
|
}
|
||||||
|
objects_keeper.keepAlive(settings.acousticEffects.observe([=](auto value) {
|
||||||
|
if (value) return;
|
||||||
|
backend->setAcoustics(audio::Acoustics {});
|
||||||
|
}, true));
|
||||||
|
|
||||||
if (inputEnabled) {
|
if (inputEnabled) {
|
||||||
::input_device = backend->openInputDevice("", 44100, 1, 16);
|
::input_device = backend->openInputDevice("", 44100, 1, 16);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue