Skip to content

Commit

Permalink
Fixup previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolfering committed Sep 21, 2024
1 parent 04137ab commit c4d74c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source_Files/Misc/preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down Expand Up @@ -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));
}
}

Expand Down
2 changes: 1 addition & 1 deletion Source_Files/Sound/SoundManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ void SoundManager::SetStatus(bool active)
static_cast<bool>(parameters.flags & _hrtf_flag),
static_cast<bool>(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);
Expand Down

0 comments on commit c4d74c4

Please sign in to comment.