diff options
author | Simon Howard | 2007-05-16 14:28:22 +0000 |
---|---|---|
committer | Simon Howard | 2007-05-16 14:28:22 +0000 |
commit | 2a026e12779b77b2aeabb78bdca3ea00e10d478a (patch) | |
tree | 02042c4b81e2cdf52e8426cb1221ca319f8fde7d /src/i_sound.c | |
parent | 991ef372d4acdf5f2fcae09cef05bfec12ce9b64 (diff) | |
download | chocolate-doom-2a026e12779b77b2aeabb78bdca3ea00e10d478a.tar.gz chocolate-doom-2a026e12779b77b2aeabb78bdca3ea00e10d478a.tar.bz2 chocolate-doom-2a026e12779b77b2aeabb78bdca3ea00e10d478a.zip |
Add FEATURE_SOUND.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 877
Diffstat (limited to 'src/i_sound.c')
-rw-r--r-- | src/i_sound.c | 41 |
1 files changed, 4 insertions, 37 deletions
diff --git a/src/i_sound.c b/src/i_sound.c index 67a92130..06fdd727 100644 --- a/src/i_sound.c +++ b/src/i_sound.c @@ -43,6 +43,7 @@ #include "i_sound.h" #include "i_swap.h" #include "deh_main.h" +#include "s_sound.h" #include "m_argv.h" #include "m_misc.h" #include "w_wad.h" @@ -53,23 +54,6 @@ #define MAXMIDLENGTH (96 * 1024) -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, -}; - -extern int snd_sfxdevice; -extern int snd_musicdevice; - static boolean nosfxparm; static boolean nomusicparm; @@ -83,17 +67,6 @@ static int mixer_freq; static Uint16 mixer_format; static int mixer_channels; -// Disable music on OSX by default; there are problems with SDL_mixer. - -#ifndef __MACOSX__ -#define DEFAULT_MUSIC_DEVICE SNDDEVICE_SB -#else -#define DEFAULT_MUSIC_DEVICE SNDDEVICE_NONE -#endif - -int snd_musicdevice = DEFAULT_MUSIC_DEVICE; -int snd_sfxdevice = SNDDEVICE_SB; - // When a sound stops, check if it is still playing. If it is not, // we can mark the sound data as CACHE to be freed back for other // means. @@ -506,6 +479,9 @@ void I_ShutdownSound(void) Mix_CloseAudio(); SDL_QuitSubSystem(SDL_INIT_AUDIO); + + sound_initialised = false; + music_initialised = false; } @@ -625,15 +601,6 @@ I_InitSound() // MUSIC API. // -void I_InitMusic(void) -{ -} - -void I_ShutdownMusic(void) -{ - music_initialised = false; -} - static boolean musicpaused = false; static int currentMusicVolume; |