From df6fe563c3df382efebe36958ae78d2c365133a6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 29 Nov 2018 19:42:11 +0100 Subject: [PATCH] - cleaned up the sound options menu. There were still some leftover definitions from FMod and far too many things were at the top level. Anything non-essential has been moved to the "Advanced Sound Options" submenu and the pointless sound backend switch has been removed entirely. --- wadsrc/static/language.enu | 15 ------------- wadsrc/static/menudef.txt | 46 +++++++++++++------------------------- 2 files changed, 15 insertions(+), 46 deletions(-) diff --git a/wadsrc/static/language.enu b/wadsrc/static/language.enu index ab2f74fb4..2b49fe55f 100644 --- a/wadsrc/static/language.enu +++ b/wadsrc/static/language.enu @@ -2530,22 +2530,7 @@ OPTSTR_SIMPLEARROW = "Simple arrow"; OPTSTR_HERETIC = "Heretic"; OPTSTR_CHEX = "Chex"; OPTSTR_SYSTEMCURSOR = "System cursor"; -OPTSTR_DIRECTSOUND = "DirectSound"; -OPTSTR_WASAPI = "Vista WASAPI"; -OPTSTR_ASIO = "ASIO"; -OPTSTR_WAVEOUT = "WaveOut"; OPTSTR_NOSOUND = "No Sound"; -OPTSTR_OSS = "OSS"; -OPTSTR_ALSA = "ALSA"; -OPTSTR_SDL = "SDL"; -OPTSTR_ESD = "ESD"; -OPTSTR_PULSEAUDIO = "PulseAudio"; -OPTSTR_COREAUDIO = "Core Audio"; -OPTSTR_PCM8BIT = "8-bit"; -OPTSTR_PCM16BIT = "16-bit"; -OPTSTR_PCM24BIT = "24-bit"; -OPTSTR_PCM32BIT = "32-bit"; -OPTSTR_PCMFLOAT = "32-bit float"; OPTSTR_AUTO = "Auto"; OPTSTR_MONO = "Mono"; OPTSTR_STEREO = "Stereo"; diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index 4bb577ac6..965f23d0c 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -1553,16 +1553,6 @@ OptionString ALResamplers // filled in by the sound code } -OptionString OutputFormats -{ - "PCM-8", "$OPTSTR_PCM8BIT" - "PCM-16", "$OPTSTR_PCM16BIT" - "PCM-24", "$OPTSTR_PCM24BIT" - "PCM-32", "$OPTSTR_PCM32BIT" - "PCM-Float", "$OPTSTR_PCMFLOAT" -} - - OptionString SpeakerModes { "Auto", "$OPTSTR_AUTO" @@ -1585,12 +1575,6 @@ OptionString Resamplers } -OptionString SoundBackendsOpenALOnly -{ - "openal", "$OPTSTR_OPENAL" - "null", "$OPTSTR_NOSOUND" -} - OptionMenu OpenALSoundItems protected { Title "$OPENALMNU_TITLE" @@ -1616,23 +1600,8 @@ OptionMenu SoundOptions protected Option "$SNDMNU_UNDERWATERREVERB", "snd_waterreverb", "OnOff" Option "$SNDMNU_RANDOMIZEPITCHES", "snd_pitched", "OnOff" Slider "$SNDMNU_CHANNELS", "snd_channels", 64, 256, 8, 0 - StaticText " " - Option "$SNDMNU_BACKGROUND", "i_soundinbackground", "OnOff" - StaticText " " - - ifoption(openal) - { - Option "$SNDMNU_BACKEND", "snd_backend", "SoundBackendsOpenALOnly" - Submenu "$SNDMNU_OPENAL", "OpenALSoundItems" - } - StaticText " " - Command "$SNDMNU_RESTART", "snd_reset" - StaticText " " Submenu "$SNDMNU_ADVANCED", "AdvSoundOptions" - Submenu "$SNDMNU_MIDIPLAYER", "MidiPlayerOptions" - Submenu "$SNDMNU_MODREPLAYER", "ModReplayerOptions" - StaticText " " Submenu "$OPTMNU_REVERB", "ReverbEdit" } @@ -1665,6 +1634,21 @@ OptionMenu AdvSoundOptions protected Title "$ADVSNDMNU_TITLE" Option "$ADVSNDMNU_SAMPLERATE", "snd_samplerate", "SampleRates" Option "$ADVSNDMNU_HRTF", "snd_hrtf", "AutoOffOn" + StaticText " " + Option "$SNDMNU_BACKGROUND", "i_soundinbackground", "OnOff" + StaticText " " + + ifoption(openal) + { + StaticText " " + Submenu "$SNDMNU_OPENAL", "OpenALSoundItems" + } + + StaticText " " + Submenu "$SNDMNU_MIDIPLAYER", "MidiPlayerOptions" + Submenu "$SNDMNU_MODREPLAYER", "ModReplayerOptions" + StaticText " " + Command "$SNDMNU_RESTART", "snd_reset" } OptionMenu GusConfigMenu protected