diff options
Diffstat (limited to 'Source/Core/AudioCommon')
| -rw-r--r-- | Source/Core/AudioCommon/Src/Mixer.cpp | 10 | ||||
| -rw-r--r-- | Source/Core/AudioCommon/Src/Mixer.h | 4 |
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: |
