Make an advanced sound option for snd_hrtf

This commit is contained in:
Chris Robinson 2017-04-30 06:56:34 -07:00 committed by Christoph Oelckers
parent aae6ded2dd
commit 49449e623e
2 changed files with 10 additions and 0 deletions

View file

@ -2141,6 +2141,7 @@ OPENALMNU_ENABLEEFX = "Enable EFX";
// Advanced Sound Options // Advanced Sound Options
ADVSNDMNU_TITLE = "ADVANCED SOUND OPTIONS"; ADVSNDMNU_TITLE = "ADVANCED SOUND OPTIONS";
ADVSNDMNU_SAMPLERATE = "Sample rate"; ADVSNDMNU_SAMPLERATE = "Sample rate";
ADVSNDMNU_HRTF = "HRTF";
ADVSNDMNU_OPLSYNTHESIS = "OPL Synthesis"; ADVSNDMNU_OPLSYNTHESIS = "OPL Synthesis";
ADVSNDMNU_OPLNUMCHIPS = "Number of emulated OPL chips"; ADVSNDMNU_OPLNUMCHIPS = "Number of emulated OPL chips";
ADVSNDMNU_OPLFULLPAN = "Full MIDI stereo panning"; ADVSNDMNU_OPLFULLPAN = "Full MIDI stereo panning";
@ -2220,6 +2221,7 @@ JOYMNU_NOAXES = "No configurable axes";
// Option Values // Option Values
OPTVAL_OFF = "Off"; OPTVAL_OFF = "Off";
OPTVAL_ON = "On"; OPTVAL_ON = "On";
OPTVAL_AUTO = "Auto";
OPTVAL_MALE = "Male"; OPTVAL_MALE = "Male";
OPTVAL_FEMALE = "Female"; OPTVAL_FEMALE = "Female";
OPTVAL_OTHER = "Other"; OPTVAL_OTHER = "Other";

View file

@ -309,6 +309,13 @@ OptionValue "OffOn"
1, "$OPTVAL_OFF" 1, "$OPTVAL_OFF"
} }
OptionValue OffAutoOn
{
-1, "$OPTVAL_OFF"
0, "$OPTVAL_AUTO"
1, "$OPTVAL_ON"
}
OptionMenuSettings OptionMenuSettings
{ {
// These can be overridden if a different menu fonts requires it. // These can be overridden if a different menu fonts requires it.
@ -1629,6 +1636,7 @@ OptionMenu AdvSoundOptions
{ {
Title "$ADVSNDMNU_TITLE" Title "$ADVSNDMNU_TITLE"
Option "$ADVSNDMNU_SAMPLERATE", "snd_samplerate", "SampleRates" Option "$ADVSNDMNU_SAMPLERATE", "snd_samplerate", "SampleRates"
Option "$ADVSNDMNU_HRTF", "snd_hrtf", "OffAutoOn"
StaticText " " StaticText " "
StaticText "$ADVSNDMNU_OPLSYNTHESIS", 1 StaticText "$ADVSNDMNU_OPLSYNTHESIS", 1
Slider "$ADVSNDMNU_OPLNUMCHIPS", "opl_numchips", 1, 8, 1, 0 Slider "$ADVSNDMNU_OPLNUMCHIPS", "opl_numchips", 1, 8, 1, 0