From b80e207a8aec7ec7c0a97e1a14889ba41f07dcd0 Mon Sep 17 00:00:00 2001 From: pierre Date: Fri, 1 Oct 2010 23:23:13 +0000 Subject: Core/DSPCore: Make JIT work on 64 bit hosts This is the safe variant that does not assume other functions use R11 for &g_dsp.r, which they actually do. So there is a lot unnecessary reloading of the register getting emitted. There are a few small changes exploiting pointers known at emission time and making use of MComplex math. Also renames m_LLEplaying to m_AIplaying in Core/AudioCommon. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6245 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/AudioCommon/Src/Mixer.cpp | 10 +++++----- Source/Core/AudioCommon/Src/Mixer.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'Source/Core/AudioCommon') diff --git a/Source/Core/AudioCommon/Src/Mixer.cpp b/Source/Core/AudioCommon/Src/Mixer.cpp index b5843a3e8d..b4f1be935d 100644 --- a/Source/Core/AudioCommon/Src/Mixer.cpp +++ b/Source/Core/AudioCommon/Src/Mixer.cpp @@ -37,17 +37,17 @@ unsigned int CMixer::Mix(short* samples, unsigned int numSamples) } unsigned int numLeft = Common::AtomicLoad(m_numSamples); - if (m_LLEplaying) { + if (m_AIplaying) { if (numLeft < numSamples)//cannot do much about this - m_LLEplaying = false; + m_AIplaying = false; if (numLeft < MAX_SAMPLES/4)//low watermark - m_LLEplaying = false; + m_AIplaying = false; } else { if (numLeft > MAX_SAMPLES/2)//high watermark - m_LLEplaying = true; + m_AIplaying = true; } - if (m_LLEplaying) { + if (m_AIplaying) { numLeft = (numLeft > numSamples) ? numSamples : numLeft; // Do re-sampling if needed diff --git a/Source/Core/AudioCommon/Src/Mixer.h b/Source/Core/AudioCommon/Src/Mixer.h index 8db6da1ca7..dfa4d41828 100644 --- a/Source/Core/AudioCommon/Src/Mixer.h +++ b/Source/Core/AudioCommon/Src/Mixer.h @@ -35,7 +35,7 @@ public: , m_numSamples(0) , m_indexW(0) , m_indexR(0) - , m_LLEplaying(true) + , m_AIplaying(true) { // AyuanX: The internal (Core & DSP) sample rate is fixed at 32KHz // So when AI/DAC sample rate differs than 32KHz, we have to do re-sampling @@ -81,7 +81,7 @@ protected: u32 m_indexW; u32 m_indexR; - bool m_LLEplaying; + bool m_AIplaying; private: -- cgit v1.2.3