Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Stella
Commits
2bc87ae5
Commit
2bc87ae5
authored
Apr 05, 2019
by
thrust26
Browse files
aligned preset naming to UI (part 2)
parent
64db0339
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/common/AudioSettings.cxx
View file @
2bc87ae5
...
...
@@ -28,7 +28,7 @@ namespace {
{
return
(
numericPreset
>=
static_cast
<
int
>
(
AudioSettings
::
Preset
::
custom
)
&&
numericPreset
<=
static_cast
<
int
>
(
AudioSettings
::
Preset
::
veryHighQualityVeryLow
Lag
)
numericPreset
<=
static_cast
<
int
>
(
AudioSettings
::
Preset
::
ultraQualityMinimal
Lag
)
)
?
static_cast
<
AudioSettings
::
Preset
>
(
numericPreset
)
:
AudioSettings
::
DEFAULT_PRESET
;
}
...
...
@@ -194,7 +194,7 @@ void AudioSettings::setPreset(AudioSettings::Preset preset)
myPresetResamplingQuality
=
ResamplingQuality
::
lanczos_2
;
break
;
case
Preset
::
veryHighQualityVeryLow
Lag
:
case
Preset
::
ultraQualityMinimal
Lag
:
myPresetSampleRate
=
96000
;
myPresetFragmentSize
=
128
;
myPresetBufferSize
=
0
;
...
...
src/gui/AudioDialog.cxx
View file @
2bc87ae5
...
...
@@ -77,7 +77,7 @@ AudioDialog::AudioDialog(OSystem& osystem, DialogContainer& parent,
VarList
::
push_back
(
items
,
"Low quality, medium lag"
,
static_cast
<
int
>
(
AudioSettings
::
Preset
::
lowQualityMediumLag
));
VarList
::
push_back
(
items
,
"High quality, medium lag"
,
static_cast
<
int
>
(
AudioSettings
::
Preset
::
highQualityMediumLag
));
VarList
::
push_back
(
items
,
"High quality, low lag"
,
static_cast
<
int
>
(
AudioSettings
::
Preset
::
highQualityLowLag
));
VarList
::
push_back
(
items
,
"Ultra quality, minimal lag"
,
static_cast
<
int
>
(
AudioSettings
::
Preset
::
veryHighQualityVeryLow
Lag
));
VarList
::
push_back
(
items
,
"Ultra quality, minimal lag"
,
static_cast
<
int
>
(
AudioSettings
::
Preset
::
ultraQualityMinimal
Lag
));
VarList
::
push_back
(
items
,
"Custom"
,
static_cast
<
int
>
(
AudioSettings
::
Preset
::
custom
));
myModePopup
=
new
PopUpWidget
(
this
,
font
,
xpos
,
ypos
,
font
.
getStringWidth
(
"Ultry quality, minimal lag"
),
lineHeight
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment