summaryrefslogtreecommitdiff
path: root/setup/sound.c
diff options
context:
space:
mode:
authorSimon Howard2009-11-19 21:49:13 +0000
committerSimon Howard2009-11-19 21:49:13 +0000
commit43b0dbd272da1d590797d2974e94413971131129 (patch)
treea4deab2b5fe6a50d66966a792a103563a4464103 /setup/sound.c
parente62fdd771f01ef7b50fe3cb8f456eae5d7db3748 (diff)
downloadchocolate-doom-43b0dbd272da1d590797d2974e94413971131129.tar.gz
chocolate-doom-43b0dbd272da1d590797d2974e94413971131129.tar.bz2
chocolate-doom-43b0dbd272da1d590797d2974e94413971131129.zip
Rework the OS X MIDI disabling code, as SDL_mixer 1.2.11 fixes the
crash. Check and disable MIDI by default if using an older version of SDL on OS X. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1730
Diffstat (limited to 'setup/sound.c')
-rw-r--r--setup/sound.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/setup/sound.c b/setup/sound.c
index 72414c83..9e02aeec 100644
--- a/setup/sound.c
+++ b/setup/sound.c
@@ -27,20 +27,6 @@
#include "sound.h"
-enum
-{
- SNDDEVICE_NONE = 0,
- SNDDEVICE_PCSPEAKER = 1,
- SNDDEVICE_ADLIB = 2,
- SNDDEVICE_SB = 3,
- SNDDEVICE_PAS = 4,
- SNDDEVICE_GUS = 5,
- SNDDEVICE_WAVEBLASTER = 6,
- SNDDEVICE_SOUNDCANVAS = 7,
- SNDDEVICE_GENMIDI = 8,
- SNDDEVICE_AWE32 = 9,
-};
-
typedef enum
{
SFXMODE_DISABLED,
@@ -56,20 +42,11 @@ static char *sfxmode_strings[] =
"Digital",
};
-// Disable MIDI music on OSX: there are problems with the native
-// MIDI code in SDL_mixer.
-
-#ifdef __MACOSX__
-#define DEFAULT_MUSIC_DEVICE SNDDEVICE_NONE
-#else
-#define DEFAULT_MUSIC_DEVICE SNDDEVICE_SB
-#endif
-
int snd_sfxdevice = SNDDEVICE_SB;
int numChannels = 8;
int sfxVolume = 15;
-int snd_musicdevice = DEFAULT_MUSIC_DEVICE;
+int snd_musicdevice = SNDDEVICE_SB;
int musicVolume = 15;
int snd_samplerate = 22050;