commit a98d35b8ef7f57839e0f321d4c68918279bc854a
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sun Jun 5 00:09:47 2016 -0400
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Sun Jun 5 00:09:47 2016 -0400
setup: Only show PC speaker option for Doom.
Other games don't have PC speaker sound effects.
---
src/setup/sound.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/setup/sound.c b/src/setup/sound.c
index c5d3b6e0..8e5bebd5 100644
--- a/src/setup/sound.c
+++ b/src/setup/sound.c
@@ -128,8 +128,9 @@ void ConfigSound(void)
TXT_AddWidgets(window,
TXT_NewSeparator("Sound effects"),
TXT_NewRadioButton("Disabled", &snd_sfxdevice, SNDDEVICE_NONE),
- TXT_NewRadioButton("PC speaker effects", &snd_sfxdevice,
- SNDDEVICE_PCSPEAKER),
+ TXT_If(gamemission == doom,
+ TXT_NewRadioButton("PC speaker effects", &snd_sfxdevice,
+ SNDDEVICE_PCSPEAKER)),
TXT_NewRadioButton("Digital sound effects",
&snd_sfxdevice,
SNDDEVICE_SB),