From c4d74c49204ca5c3e78e76019e0a18410456f158 Mon Sep 17 00:00:00 2001 From: Kolfering Date: Sat, 21 Sep 2024 23:44:02 +0200 Subject: [PATCH] Fixup previous commit --- Source_Files/Misc/preferences.cpp | 4 ++-- Source_Files/Sound/SoundManager.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source_Files/Misc/preferences.cpp b/Source_Files/Misc/preferences.cpp index 01a4a0d57..27af9afdc 100644 --- a/Source_Files/Misc/preferences.cpp +++ b/Source_Files/Misc/preferences.cpp @@ -1578,7 +1578,7 @@ class w_music_slider : public w_slider { { if (OpenALManager::Get()) { - OpenALManager::Get()->SetMusicVolume(SoundManager::From_db((selection - 20) * 2)); + OpenALManager::Get()->SetMusicVolume(SoundManager::From_db((selection - 20) * 2, true)); } } @@ -1730,7 +1730,7 @@ static void sound_dialog(void *arg) else if (OpenALManager::Get()) { OpenALManager::Get()->SetMasterVolume(SoundManager::From_db(sound_preferences->volume_db)); - OpenALManager::Get()->SetMusicVolume(SoundManager::From_db(sound_preferences->music_db)); + OpenALManager::Get()->SetMusicVolume(SoundManager::From_db(sound_preferences->music_db, true)); } } diff --git a/Source_Files/Sound/SoundManager.cpp b/Source_Files/Sound/SoundManager.cpp index 63c43fdff..5e3ee0672 100644 --- a/Source_Files/Sound/SoundManager.cpp +++ b/Source_Files/Sound/SoundManager.cpp @@ -757,7 +757,7 @@ void SoundManager::SetStatus(bool active) static_cast(parameters.flags & _hrtf_flag), static_cast(parameters.flags & _3d_sounds_flag), From_db(parameters.volume_db), - From_db(parameters.music_db) + From_db(parameters.music_db, true) }; bool success = OpenALManager::Init(audio_parameters);