diff --git a/common/include/PS2Edefs.h b/common/include/PS2Edefs.h index 352aa05a3a..9c5b4093e2 100644 --- a/common/include/PS2Edefs.h +++ b/common/include/PS2Edefs.h @@ -455,36 +455,6 @@ extern _PADqueryMtap PADqueryMtap; extern _PADWriteEvent PADWriteEvent; #endif -// SPU2 -#ifndef BUILTIN_SPU2_PLUGIN -extern _SPU2open SPU2open; -extern _SPU2reset SPU2reset; -extern _SPU2ps1reset SPU2ps1reset; -extern _SPU2write SPU2write; -extern _SPU2read SPU2read; - -extern _SPU2readDMA4Mem SPU2readDMA4Mem; -extern _SPU2writeDMA4Mem SPU2writeDMA4Mem; -extern _SPU2interruptDMA4 SPU2interruptDMA4; -extern _SPU2readDMA7Mem SPU2readDMA7Mem; -extern _SPU2writeDMA7Mem SPU2writeDMA7Mem; -extern _SPU2setDMABaseAddr SPU2setDMABaseAddr; -extern _SPU2interruptDMA7 SPU2interruptDMA7; -extern _SPU2ReadMemAddr SPU2ReadMemAddr; -extern _SPU2setupRecording SPU2setupRecording; -extern _SPU2WriteMemAddr SPU2WriteMemAddr; -extern _SPU2irqCallback SPU2irqCallback; - -extern _SPU2irqCallback SPU2irqCallback; - -extern _SPU2setupRecording SPU2setupRecording; - -extern _SPU2setClockPtr SPU2setClockPtr; -extern _SPU2setTimeStretcher SPU2setTimeStretcher; - -extern _SPU2async SPU2async; -#endif - // DEV9 #ifndef BUILTIN_DEV9_PLUGIN extern _DEV9open DEV9open; diff --git a/pcsx2/CMakeLists.txt b/pcsx2/CMakeLists.txt index fce4ea9afe..d128d8ec3c 100644 --- a/pcsx2/CMakeLists.txt +++ b/pcsx2/CMakeLists.txt @@ -249,6 +249,7 @@ set(pcsx2SPU2Sources SPU2/Linux/ConfigDebug.cpp SPU2/Linux/ConfigSoundTouch.cpp SPU2/Linux/Dialogs.cpp + SPU2/wx/wxConfig.cpp ) # SPU2 headers @@ -269,6 +270,7 @@ set(pcsx2SPU2Headers SPU2/Linux/Alsa.h SPU2/Linux/Config.h SPU2/Linux/Dialogs.h + SPU2/wx/wxConfig.h ) # DebugTools sources @@ -768,6 +770,9 @@ set(pcsx2FinalLibs ${ZLIB_LIBRARIES} ${AIO_LIBRARIES} ${GCOV_LIBRARIES} + ${ALSA_LIBRARIES} + ${SOUNDTOUCH_LIBRARIES} + ${SDL2_LIBRARIES} ${Platform_Libs} ) diff --git a/pcsx2/SPU2/Config.h b/pcsx2/SPU2/Config.h index bb1695affb..cc7376267e 100644 --- a/pcsx2/SPU2/Config.h +++ b/pcsx2/SPU2/Config.h @@ -15,8 +15,11 @@ * along with SPU2-X. If not, see . */ + #pragma once +#include "Global.h" + extern bool DebugEnabled; extern bool _MsgToConsole; @@ -99,4 +102,4 @@ extern void ApplySettings(soundtouch::SoundTouch &sndtouch); extern void ReadSettings(); extern void WriteSettings(); -extern void configure(); \ No newline at end of file +extern void configure(); diff --git a/pcsx2/SPU2/Global.h b/pcsx2/SPU2/Global.h index bdb367b4bb..cd49b47805 100644 --- a/pcsx2/SPU2/Global.h +++ b/pcsx2/SPU2/Global.h @@ -15,8 +15,7 @@ * along with SPU2-X. If not, see . */ -#ifndef _SPU2X_GLOBAL_H_ -#define _SPU2X_GLOBAL_H_ +#pragma once #define NOMINMAX @@ -104,4 +103,3 @@ extern void SysMessage(const wchar_t *fmt, ...); #include "Debug.h" #include "SndOut.h" -#endif diff --git a/pcsx2/SPU2/spu2.cpp b/pcsx2/SPU2/spu2.cpp index 983a2be2e4..d5d5d0c1dc 100644 --- a/pcsx2/SPU2/spu2.cpp +++ b/pcsx2/SPU2/spu2.cpp @@ -26,6 +26,8 @@ using namespace Threading; +MutexRecursive mtx_SPU2Status; + #include "svnrev.h" #ifdef _MSC_VER diff --git a/pcsx2/SPU2/spu2.h b/pcsx2/SPU2/spu2.h index db3a9d4a3b..d019419a20 100644 --- a/pcsx2/SPU2/spu2.h +++ b/pcsx2/SPU2/spu2.h @@ -21,7 +21,7 @@ #include "Utilities/Threading.h" #include "SaveState.h" -Threading::MutexRecursive mtx_SPU2Status; +extern Threading::MutexRecursive mtx_SPU2Status; s32 SPU2init(); s32 SPU2reset(); diff --git a/pcsx2/SPU2/wx/wxConfig.cpp b/pcsx2/SPU2/wx/wxConfig.cpp index 4ad43e586a..bbc86176e0 100644 --- a/pcsx2/SPU2/wx/wxConfig.cpp +++ b/pcsx2/SPU2/wx/wxConfig.cpp @@ -15,7 +15,11 @@ * along with SPU2-X. If not, see . */ -#include "Global.h" +#include "../Config.h" +#ifdef __linux__ +#include "../Linux/Config.h" +#endif +#include "../Global.h" #include "wxConfig.h" MixerTab::MixerTab(wxWindow* parent) diff --git a/pcsx2/SPU2/wx/wxConfig.h b/pcsx2/SPU2/wx/wxConfig.h index c1bbacdf9b..21113b43db 100644 --- a/pcsx2/SPU2/wx/wxConfig.h +++ b/pcsx2/SPU2/wx/wxConfig.h @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with SPU2-X. If not, see . */ +#pragma once #include #include