Don't include arch/arch_default.h from anywhere but in arch. RageSoundManager shouldn't depend on the input handler, for example.

This commit is contained in:
Steve Checkoway
2008-04-29 06:12:20 +00:00
parent 4c76523863
commit 0c2a2ad425
3 changed files with 5 additions and 9 deletions
+3 -2
View File
@@ -3,13 +3,14 @@
#include "RageLog.h"
#include "RageUtil.h"
#include "Foreach.h"
#include "arch/arch_default.h"
DriverList RageSoundDriver::m_pDriverList;
RageSoundDriver *RageSoundDriver::Create( const RString &drivers )
RageSoundDriver *RageSoundDriver::Create( const RString& sDrivers )
{
vector<RString> DriversToTry;
split( drivers, ",", DriversToTry, true );
split( sDrivers.empty()? DEFAULT_SOUND_DRIVER_LIST:sDrivers, ",", DriversToTry, true );
FOREACH_CONST( RString, DriversToTry, Driver )
{
@@ -15,6 +15,7 @@ static const int samples_per_block = 512;
class RageSoundDriver: public RageDriver
{
public:
/* Pass an empty string to get the default sound driver list. */
static RageSoundDriver *Create( const RString &sDrivers );
static DriverList m_pDriverList;