replace sound driver Linux with ALSA9, create arch_linux.h to house future linux arch includes

This commit is contained in:
Aaron VonderHaar
2003-02-23 09:03:10 +00:00
parent 06b941482d
commit f07855afac
3 changed files with 18 additions and 4 deletions
+3 -3
View File
@@ -14,7 +14,7 @@
/* Override them with arch-specific drivers, as available. */
#if defined(LINUX)
#include "RageSoundDriver_Linux.h"
#include "arch_linux.h"
#elif defined(WIN32)
#include "arch_Win32.h"
#endif
@@ -51,8 +51,8 @@ RageSoundDriver *MakeRageSoundDriver(CString drivers)
if(!DriversToTry[i].CompareNoCase("DirectSound-sw")) ret = new RageSound_DSound_Software;
if(!DriversToTry[i].CompareNoCase("WaveOut")) ret = new RageSound_WaveOut;
#endif
#ifdef LINUX
if(!DriversToTry[i].CompareNoCase("Linux")) ret = new RageSound_Linux;
#ifdef LINUX /* should use some define akin to HAS_ALSA9 */
if(!DriversToTry[i].CompareNoCase("ALSA9")) ret = new RageSound_ALSA9;
#endif
if(!DriversToTry[i].CompareNoCase("Null")) ret = new RageSound_Null;
if( !ret )
+1 -1
View File
@@ -17,7 +17,7 @@ RageSoundDriver *MakeRageSoundDriver(CString drivers);
/* Define the default list of sound drivers for each arch. */
#if defined(LINUX)
#define DEFAULT_SOUND_DRIVER_LIST "Linux"
#define DEFAULT_SOUND_DRIVER_LIST "ALSA9,Null"
#elif defined(WIN32)
#define DEFAULT_SOUND_DRIVER_LIST "DirectSound,DirectSound-sw,WaveOut"
#else
+14
View File
@@ -0,0 +1,14 @@
#ifndef LINUX_ARCH_H
#define LINUX_ARCH_H
/* #ifdef HAS_ALSA9 */
#include "Sound/RageSoundDriver_ALSA9.h"
/* #endif HAS_ALSA9 */
#endif
/*
* Copyright (c) 2002 by the person(s) listed below. All rights reserved.
*
* Glenn Maynard
*/