From 3983a8d22f5a442a480a71da4626447c0b8bd24d Mon Sep 17 00:00:00 2001 From: Marko Pusljar Date: Sun, 17 Apr 2011 00:42:56 +0000 Subject: [PATCH] DSPLLE - Donkey Kong Jungle Beat (WII) / Pikmin 2 (WII) audio fix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7468 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/HW/DSPLLE/DSPLLE.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Src/HW/DSPLLE/DSPLLE.cpp b/Source/Core/Core/Src/HW/DSPLLE/DSPLLE.cpp index 8dd5b5040f..97fbe2ec28 100644 --- a/Source/Core/Core/Src/HW/DSPLLE/DSPLLE.cpp +++ b/Source/Core/Core/Src/HW/DSPLLE/DSPLLE.cpp @@ -287,9 +287,10 @@ void DSPLLE::DSP_SendAIBuffer(unsigned int address, unsigned int num_samples) CMixer *pMixer = soundStream->GetMixer(); - if (pMixer != 0 && address != 0) + if (pMixer && address) { - const short *samples = (const short *)&g_dsp.cpu_ram[address & Memory::RAM_MASK]; + address &= (address & 0x10000000) ? 0x13ffffff : 0x01ffffff; + const short *samples = (const short *)&g_dsp.cpu_ram[address]; pMixer->PushSamples(samples, num_samples); }