shithub: choc

Download patch

ref: 19ac0c269c8037789137f50163f43decbe907c1f
parent: 431752097ad149a2c58381bfa229a472b0524928
author: Simon Howard <[email protected]>
date: Fri Nov 28 10:50:43 EST 2014

Remove CD music as an option in setup tool.

This no longer works since the last commit.

--- a/src/setup/sound.c
+++ b/src/setup/sound.c
@@ -46,7 +46,6 @@
     MUSICMODE_OPL,
     MUSICMODE_GUS,
     MUSICMODE_NATIVE,
-    MUSICMODE_CD,
     NUM_MUSICMODES
 } musicmode_t;
 
@@ -56,7 +55,6 @@
     "OPL (Adlib/SB)",
     "GUS (emulated)",
     "Native MIDI",
-    "CD audio"
 };
 
 static char *cfg_extension[] = { "cfg", NULL };
@@ -126,9 +124,6 @@
         case MUSICMODE_GUS:
             snd_musicdevice = SNDDEVICE_GUS;
             break;
-        case MUSICMODE_CD:
-            snd_musicdevice = SNDDEVICE_CD;
-            break;
     }
 }
 
@@ -171,7 +166,7 @@
     txt_table_t *extra_table;
     txt_dropdown_list_t *sfx_mode_control;
     txt_dropdown_list_t *music_mode_control;
-    int num_sfx_modes, num_music_modes;
+    int num_sfx_modes;
 
     // Work out what sfx mode we are currently using:
 
@@ -195,9 +190,6 @@
         case SNDDEVICE_GENMIDI:
             snd_musicmode = MUSICMODE_NATIVE;
             break;
-        case SNDDEVICE_CD:
-            snd_musicmode = MUSICMODE_CD;
-            break;
         case SNDDEVICE_SB:
         case SNDDEVICE_ADLIB:
         case SNDDEVICE_AWE32:
@@ -222,17 +214,6 @@
         num_sfx_modes = NUM_SFXMODES - 1;
     }
 
-    // Hexen has CD audio; others do not.
-
-    if (gamemission == hexen)
-    {
-        num_music_modes = NUM_MUSICMODES;
-    }
-    else
-    {
-        num_music_modes = NUM_MUSICMODES - 1;
-    }
-
     // Build the window
 
     window = TXT_NewWindow("Sound configuration");
@@ -280,7 +261,7 @@
                    TXT_NewLabel("Music"),
                    music_mode_control = TXT_NewDropdownList(&snd_musicmode,
                                                             musicmode_strings,
-                                                            num_music_modes),
+                                                            NUM_MUSICMODES),
                    TXT_NewLabel("Music volume"),
                    TXT_NewSpinControl(&musicVolume, 0, 15),
                    NULL);