spu2x: On linux uses by default the ALSA api when no inifile exists

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4574 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut@gmail.com 2011-04-14 20:59:00 +00:00
parent f69e165b51
commit 2abb0c0f1d
1 changed files with 5 additions and 0 deletions

View File

@ -291,7 +291,12 @@ public:
{
wxString api( L"EMPTYEMPTYEMPTY" );
m_Device = L"EMPTYEMPTYEMPTY";
#ifdef __LINUX__
// By default on linux use the ALSA API (+99% users) -- Gregory
CfgReadStr( L"PORTAUDIO", L"HostApi", api, L"ALSA" );
#else
CfgReadStr( L"PORTAUDIO", L"HostApi", api, L"Unknown" );
#endif
CfgReadStr( L"PORTAUDIO", L"Device", m_Device, L"default" );
SetApiSettings(api);