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
+1 -7
View File
@@ -21,8 +21,6 @@
#include "arch/Sound/RageSoundDriver.h"
#include "arch/arch_default.h"
/*
* The lock ordering requirements are:
* RageSound::Lock before g_SoundManMutex
@@ -46,11 +44,7 @@ RageSoundManager::RageSoundManager()
static LocalizedString COULDNT_FIND_SOUND_DRIVER( "RageSoundManager", "Couldn't find a sound driver that works" );
void RageSoundManager::Init()
{
RString sDrivers = g_sSoundDrivers;
if( sDrivers.empty() )
sDrivers = DEFAULT_SOUND_DRIVER_LIST;
m_pDriver = RageSoundDriver::Create( sDrivers );
m_pDriver = RageSoundDriver::Create( g_sSoundDrivers );
if( m_pDriver == NULL )
RageException::Throw( "%s", COULDNT_FIND_SOUND_DRIVER.GetValue().c_str() );
}