From 2bc87ae51e7b9a7de785c7d59a5f3a2c9e13f7fb Mon Sep 17 00:00:00 2001 From: thrust26 Date: Fri, 5 Apr 2019 09:53:03 +0200 Subject: [PATCH] aligned preset naming to UI (part 2) --- src/common/AudioSettings.cxx | 4 ++-- src/gui/AudioDialog.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/AudioSettings.cxx b/src/common/AudioSettings.cxx index 0b5379eb7..63e8e5ea2 100644 --- a/src/common/AudioSettings.cxx +++ b/src/common/AudioSettings.cxx @@ -28,7 +28,7 @@ namespace { { return ( numericPreset >= static_cast(AudioSettings::Preset::custom) && - numericPreset <= static_cast(AudioSettings::Preset::veryHighQualityVeryLowLag) + numericPreset <= static_cast(AudioSettings::Preset::ultraQualityMinimalLag) ) ? static_cast(numericPreset) : AudioSettings::DEFAULT_PRESET; } @@ -194,7 +194,7 @@ void AudioSettings::setPreset(AudioSettings::Preset preset) myPresetResamplingQuality = ResamplingQuality::lanczos_2; break; - case Preset::veryHighQualityVeryLowLag: + case Preset::ultraQualityMinimalLag: myPresetSampleRate = 96000; myPresetFragmentSize = 128; myPresetBufferSize = 0; diff --git a/src/gui/AudioDialog.cxx b/src/gui/AudioDialog.cxx index 2f45a6292..353eadeca 100644 --- a/src/gui/AudioDialog.cxx +++ b/src/gui/AudioDialog.cxx @@ -77,7 +77,7 @@ AudioDialog::AudioDialog(OSystem& osystem, DialogContainer& parent, VarList::push_back(items, "Low quality, medium lag", static_cast(AudioSettings::Preset::lowQualityMediumLag)); VarList::push_back(items, "High quality, medium lag", static_cast(AudioSettings::Preset::highQualityMediumLag)); VarList::push_back(items, "High quality, low lag", static_cast(AudioSettings::Preset::highQualityLowLag)); - VarList::push_back(items, "Ultra quality, minimal lag", static_cast(AudioSettings::Preset::veryHighQualityVeryLowLag)); + VarList::push_back(items, "Ultra quality, minimal lag", static_cast(AudioSettings::Preset::ultraQualityMinimalLag)); VarList::push_back(items, "Custom", static_cast(AudioSettings::Preset::custom)); myModePopup = new PopUpWidget(this, font, xpos, ypos, font.getStringWidth("Ultry quality, minimal lag"), lineHeight,