From b48bc8e71c0c83ee28681d9b47d28a1d6f51f031 Mon Sep 17 00:00:00 2001 From: arcum42 Date: Mon, 22 Jul 2019 21:16:14 -0700 Subject: [PATCH] spu2-x: Set default to SDL on Linux instead of portaudio, unless you don't have SDL 2. --- plugins/spu2-x/src/Linux/Config.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/spu2-x/src/Linux/Config.cpp b/plugins/spu2-x/src/Linux/Config.cpp index bc365e2608..677fe73085 100644 --- a/plugins/spu2-x/src/Linux/Config.cpp +++ b/plugins/spu2-x/src/Linux/Config.cpp @@ -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