summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon
diff options
context:
space:
mode:
authorpierre <pierre@pirsoft.de>2010-10-01 23:23:13 +0000
committerpierre <pierre@pirsoft.de>2010-10-01 23:23:13 +0000
commitb80e207a8aec7ec7c0a97e1a14889ba41f07dcd0 (patch)
treeff86675c842db4a684e86ed2f82a2572bba6bb25 /Source/Core/AudioCommon
parentc8c805f720dab8d43a40ebabf52616d86ebae845 (diff)
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
Diffstat (limited to 'Source/Core/AudioCommon')
-rw-r--r--Source/Core/AudioCommon/Src/Mixer.cpp10
-rw-r--r--Source/Core/AudioCommon/Src/Mixer.h4
2 files changed, 7 insertions, 7 deletions
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: