mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: audio volume setting not applied on load
This commit is contained in:
parent
ad62b759fb
commit
8700f892c6
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ inline void create_channel(Engine* engine, std::string name, NumberSetting& sett
|
|||
}
|
||||
engine->keepAlive(setting.observe([=](auto value) {
|
||||
audio::get_channel(name)->setVolume(value*value);
|
||||
}));
|
||||
}, true));
|
||||
}
|
||||
|
||||
Engine::Engine(EngineSettings& settings, SettingsHandler& settingsHandler, EnginePaths* paths)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue