Fix compilation on everything but Darwin.

I'd suggest not spending any more time on SDL sound code; it's just going
to give you a headache.  Use a native API ...
This commit is contained in:
Glenn Maynard
2003-06-14 18:12:39 +00:00
parent 26d900ac6d
commit 95c71724a1
2 changed files with 5 additions and 9 deletions
+3 -8
View File
@@ -21,8 +21,6 @@
#include "arch_Win32.h"
#endif
#include "Sound/RageSoundDriver_SDL.h"
LoadingWindow *MakeLoadingWindow() { return new ARCH_LOADING_WINDOW; }
ErrorDialog *MakeErrorDialog() { return new ARCH_ERROR_DIALOG; }
ArchHooks *MakeArchHooks() { return new ARCH_HOOKS; }
@@ -71,12 +69,9 @@ RageSoundDriver *MakeRageSoundDriver(CString drivers)
#ifdef HAVE_OSS
if(!DriversToTry[i].CompareNoCase("OSS")) ret = new RageSound_OSS;
#endif
if(!DriversToTry[i].CompareNoCase("SDL"))
try {
ret = new RageSound_SDL;
} catch (RageException e) {
ret = NULL;
}
#ifdef RAGE_SOUND_SDL
if(!DriversToTry[i].CompareNoCase("SDL")) ret = new RageSound_SDL;
#endif
if(!DriversToTry[i].CompareNoCase("Null")) ret = new RageSound_Null;
if( !ret )
LOG->Warn("Unknown sound driver name: %s", DriversToTry[i].c_str());
+2 -1
View File
@@ -11,6 +11,7 @@
*/
#include <SDL.h>
#include "RageSoundDriver_SDL.h"
#include "Sound/RageSoundDriver_SDL.h"
#endif