mirror of https://github.com/PCSX2/pcsx2.git
spu2x: fix previous commit: restore correct api at startup
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4225 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
fb2a02af42
commit
53a5e3fd25
|
@ -72,6 +72,13 @@ void ReadSettings()
|
|||
CfgReadStr( L"OUTPUT", L"Output_Module", temp, PortaudioOut->GetIdent() );
|
||||
OutputModule = FindOutputModuleById( temp.c_str() );// find the driver index of this module
|
||||
|
||||
// find current API
|
||||
CfgReadStr( L"PORTAUDIO", L"HostApi", temp, L"ALSA" );
|
||||
OutputAPI = -1;
|
||||
if (temp == L"ALSA") OutputAPI = 0;
|
||||
if (temp == L"OSS") OutputAPI = 1;
|
||||
if (temp == L"JACK") OutputAPI = 2;
|
||||
|
||||
SndOutLatencyMS = CfgReadInt(L"OUTPUT",L"Latency", 300);
|
||||
SynchMode = CfgReadInt( L"OUTPUT", L"Synch_Mode", 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue