diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp index 2cc91d8d4a..10cf0c5b1d 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp @@ -22,6 +22,7 @@ #include "ABI.h" #include "Thunk.h" #include "../../HLE/HLE.h" +#include "../../Core.h" #include "../../CoreTiming.h" #include "../PowerPC.h" #include "../PPCTables.h" diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/Mixer.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/Mixer.cpp index cee0c2048e..9ecc07fba8 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/Mixer.cpp +++ b/Source/Plugins/Plugin_DSP_HLE/Src/PCHW/Mixer.cpp @@ -83,18 +83,20 @@ void Mixer_PushSamples(short *buffer, int num_stereo_samples, int sample_rate) { static int PV1r=0,PV2r=0,PV3r=0,PV4r=0; static int acc=0; +#ifdef _WIN32 if (!GetAsyncKeyState(VK_TAB)) { while (queue_size > queue_maxlength / 2) { -#ifdef _WIN32 DSound::DSound_UpdateSound(); Sleep(0); -#else - sleep(0); -#endif } } else { return; } +#else + while (queue_size > queue_maxlength / 2) { + sleep(0); + } +#endif //convert into config option? const int mode = 2;