From b4e032850856640d74988bcd2d207ff5007662b1 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Wed, 29 Oct 2014 23:59:32 +1300 Subject: [PATCH] And clean up this GetPointer() while I'm here. It will probally be replaced later. --- Source/Core/Core/HW/DSPHLE/UCodes/ZeldaVoice.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/ZeldaVoice.cpp b/Source/Core/Core/HW/DSPHLE/UCodes/ZeldaVoice.cpp index 5e4f670cba..dbb97e8f09 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/ZeldaVoice.cpp +++ b/Source/Core/Core/HW/DSPHLE/UCodes/ZeldaVoice.cpp @@ -438,7 +438,7 @@ void ZeldaUCode::RenderVoice_Raw(ZeldaVoicePB &PB, s16 *_Buffer, int _Size) Decoder21_ReadAudio(PB, _RealSize, _Buffer); } -void Decoder21_ReadAudio(ZeldaVoicePB &PB, int size, s16 *_Buffer) +void Decoder21_ReadAudio(ZeldaVoicePB &PB, int size, s16* _Buffer) { // 0af6 if (!size) @@ -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++) {