From 64db03396119394a0e74e20374f29ec964585066 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Fri, 5 Apr 2019 09:52:08 +0200 Subject: [PATCH] aligned preset naming to UI --- docs/index.html | 2 +- src/common/AudioSettings.hxx | 10 +++++----- src/common/SoundSDL2.cxx | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/index.html b/docs/index.html index 5005b37ef..9a6c5bfb8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1913,7 +1913,7 @@
-audio.preset <1 - 5>
Set an audio preset. Numbers in sequence represent presets for 'custom', 'low quality, 'medium lag', 'high quality, medium lag', - 'high quality, low lag' and 'very high quality, very low lag'. + 'high quality, low lag' and 'ultra quality, minimal lag'. diff --git a/src/common/AudioSettings.hxx b/src/common/AudioSettings.hxx index 63d16c124..9c6a2bea6 100644 --- a/src/common/AudioSettings.hxx +++ b/src/common/AudioSettings.hxx @@ -27,11 +27,11 @@ class AudioSettings public: enum class Preset { - custom = 1, - lowQualityMediumLag = 2, - highQualityMediumLag = 3, - highQualityLowLag = 4, - veryHighQualityVeryLowLag = 5 + custom = 1, + lowQualityMediumLag = 2, + highQualityMediumLag = 3, + highQualityLowLag = 4, + ultraQualityMinimalLag = 5 }; enum class ResamplingQuality { diff --git a/src/common/SoundSDL2.cxx b/src/common/SoundSDL2.cxx index 44655fb91..e8a6f392b 100644 --- a/src/common/SoundSDL2.cxx +++ b/src/common/SoundSDL2.cxx @@ -203,7 +203,7 @@ bool SoundSDL2::toggleMute() message += !enabled ? "unmuted" : "muted"; myOSystem.frameBuffer().showMessage(message); - + return enabled; } @@ -278,8 +278,8 @@ string SoundSDL2::about() const case AudioSettings::Preset::highQualityLowLag: buf << "High quality, low lag" << endl; break; - case AudioSettings::Preset::veryHighQualityVeryLowLag: - buf << "Very high quality, very low lag" << endl; + case AudioSettings::Preset::ultraQualityMinimalLag: + buf << "Ultra quality, minimal lag" << endl; break; } buf << " Fragment size: " << uInt32(myHardwareSpec.samples) << " bytes" << endl