mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 15:55:31 +01:00
And clean up this GetPointer() while I'm here.
It will probally be replaced later.
This commit is contained in:
parent
3e47480470
commit
b4e0328508
@ -461,9 +461,7 @@ void Decoder21_ReadAudio(ZeldaVoicePB &PB, int size, s16 *_Buffer)
|
||||
// ACC0 is the address
|
||||
// ACC1 is the read size
|
||||
|
||||
const u32 ram_mask = 0x1FFFFFF;
|
||||
const u8 *source = Memory::GetPointer(0x80000000);
|
||||
const u16 *src = (u16 *)(source + (ACC0 & ram_mask));
|
||||
const u16* src = (u16*) Memory::GetPointer(ACC0 & Memory::RAM_MASK);
|
||||
|
||||
for (u32 i = 0; i < (ACC1 >> 16); i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user