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
This commit is contained in:
parent
4e4a613b8b
commit
3983a8d22f
|
@ -287,9 +287,10 @@ void DSPLLE::DSP_SendAIBuffer(unsigned int address, unsigned int num_samples)
|
||||||
|
|
||||||
CMixer *pMixer = soundStream->GetMixer();
|
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);
|
pMixer->PushSamples(samples, num_samples);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue