From 840a4157b07f2e327e4aedf1c2116acf9ede1e05 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Wed, 24 Dec 2014 04:26:05 +0100 Subject: [PATCH] Zelda HLE: Properly implement LQ AFC decoding. Typos and stupid mistakes + untested code = dirty Git history. --- Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp b/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp index 9a742bc5f2..1138743e73 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp +++ b/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp @@ -1535,7 +1535,8 @@ void ZeldaAudioRenderer::DecodeAFC(VPB* vpb, s16* dst, size_t block_count) nibbles[i + 0] = (*src >> 6) & 3; nibbles[i + 1] = (*src >> 4) & 3; nibbles[i + 2] = (*src >> 2) & 3; - nibbles[i + 3] = (*src >> 6) & 3; + nibbles[i + 3] = (*src >> 0) & 3; + src++; } for (auto& nibble : nibbles) {