spu2-x: Set default to SDL on Linux instead of portaudio, unless you don't have SDL 2.

This commit is contained in:
arcum42 2019-07-22 21:16:14 -07:00
parent 902b88ac1a
commit b48bc8e71c
1 changed files with 5 additions and 1 deletions

View File

@ -120,9 +120,13 @@ void ReadSettings()
VolumeAdjustLFE = powf(10, VolumeAdjustLFEdb / 10);
delayCycles = CfgReadInt(L"DEBUG", L"DelayCycles", 4);
wxString temp;
#if SDL_MAJOR_VERSION >= 2
CfgReadStr(L"OUTPUT", L"Output_Module", temp, SDLOut->GetIdent());
#else
CfgReadStr(L"OUTPUT", L"Output_Module", temp, PortaudioOut->GetIdent());
#endif
OutputModule = FindOutputModuleById(temp.c_str()); // find the driver index of this module
// find current API