ref: a98d35b8ef7f57839e0f321d4c68918279bc854a
parent: d894fd58581043c0df6ce443e7da43efe35a0d22
author: Simon Howard <fraggle@soulsphere.org>
date: Sat Jun 4 20:09:47 EDT 2016
setup: Only show PC speaker option for Doom. Other games don't have PC speaker sound effects.
--- a/src/setup/sound.c
+++ b/src/setup/sound.c
@@ -128,8 +128,9 @@
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),