From 49449e623e906e53b117fd5d09bce880c810c668 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 30 Apr 2017 06:56:34 -0700 Subject: [PATCH] Make an advanced sound option for snd_hrtf --- wadsrc/static/language.enu | 2 ++ wadsrc/static/menudef.txt | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/wadsrc/static/language.enu b/wadsrc/static/language.enu index ca45cd1eff..31a66feb35 100644 --- a/wadsrc/static/language.enu +++ b/wadsrc/static/language.enu @@ -2141,6 +2141,7 @@ OPENALMNU_ENABLEEFX = "Enable EFX"; // Advanced Sound Options ADVSNDMNU_TITLE = "ADVANCED SOUND OPTIONS"; ADVSNDMNU_SAMPLERATE = "Sample rate"; +ADVSNDMNU_HRTF = "HRTF"; ADVSNDMNU_OPLSYNTHESIS = "OPL Synthesis"; ADVSNDMNU_OPLNUMCHIPS = "Number of emulated OPL chips"; ADVSNDMNU_OPLFULLPAN = "Full MIDI stereo panning"; @@ -2220,6 +2221,7 @@ JOYMNU_NOAXES = "No configurable axes"; // Option Values OPTVAL_OFF = "Off"; OPTVAL_ON = "On"; +OPTVAL_AUTO = "Auto"; OPTVAL_MALE = "Male"; OPTVAL_FEMALE = "Female"; OPTVAL_OTHER = "Other"; diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index d6bd18cfa4..12e54978a6 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -309,6 +309,13 @@ OptionValue "OffOn" 1, "$OPTVAL_OFF" } +OptionValue OffAutoOn +{ + -1, "$OPTVAL_OFF" + 0, "$OPTVAL_AUTO" + 1, "$OPTVAL_ON" +} + OptionMenuSettings { // These can be overridden if a different menu fonts requires it. @@ -1629,6 +1636,7 @@ OptionMenu AdvSoundOptions { Title "$ADVSNDMNU_TITLE" Option "$ADVSNDMNU_SAMPLERATE", "snd_samplerate", "SampleRates" + Option "$ADVSNDMNU_HRTF", "snd_hrtf", "OffAutoOn" StaticText " " StaticText "$ADVSNDMNU_OPLSYNTHESIS", 1 Slider "$ADVSNDMNU_OPLNUMCHIPS", "opl_numchips", 1, 8, 1, 0