diff options
Diffstat (limited to 'src/setup/sound.c')
-rw-r--r-- | src/setup/sound.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/setup/sound.c b/src/setup/sound.c index d8dc129e..4564aeb4 100644 --- a/src/setup/sound.c +++ b/src/setup/sound.c @@ -75,6 +75,7 @@ static int numChannels = 8; static int sfxVolume = 15; static int musicVolume = 15; static int voiceVolume = 15; +static int show_talk = 0; static int use_libsamplerate = 0; // DOS specific variables: these are unused but should be maintained @@ -196,8 +197,6 @@ void ConfigSound(void) TXT_AddWidgets(window, TXT_NewSeparator("Sound effects"), sfx_table = TXT_NewTable(2), - TXT_NewSeparator("Music"), - music_table = TXT_NewTable(2), NULL); TXT_SetColumnWidths(sfx_table, 20, 14); @@ -219,8 +218,15 @@ void ConfigSound(void) TXT_NewLabel("Voice volume"), TXT_NewSpinControl(&voiceVolume, 0, 15), NULL); + TXT_AddWidget(window, + TXT_NewCheckBox("Show text with voices", &show_talk)); } + TXT_AddWidgets(window, + TXT_NewSeparator("Music"), + music_table = TXT_NewTable(2), + NULL); + TXT_SetColumnWidths(music_table, 20, 14); TXT_AddWidgets(music_table, @@ -253,7 +259,8 @@ void BindSoundVariables(void) if (gamemission == strife) { - M_BindVariable("voice_volume", &voiceVolume); + M_BindVariable("voice_volume", &voiceVolume); + M_BindVariable("show_talk", &show_talk); } // Before SDL_mixer version 1.2.11, MIDI music caused the game |