From 413fbd985a7fe03f1cf1bc239e7bcea68e100649 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 22 Jan 2022 02:38:01 -0500 Subject: [PATCH] NES: same thing --- src/engine/platform/nes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/platform/nes.cpp b/src/engine/platform/nes.cpp index cc60d99e8..ce9e12428 100644 --- a/src/engine/platform/nes.cpp +++ b/src/engine/platform/nes.cpp @@ -17,12 +17,12 @@ void DivPlatformNES::acquire(short* bufL, short* bufR, size_t start, size_t len) DivSample* s=parent->song.sample[dacSample]; if (!isMuted[4]) { if (s->depth==8) { - rWrite(0x4011,((unsigned char)s->rendData[dacPos++]+0x80)>>1); + rWrite(0x4011,((unsigned char)s->rendData[dacPos]+0x80)>>1); } else { - rWrite(0x4011,((unsigned short)s->rendData[dacPos++]+0x8000)>>9); + rWrite(0x4011,((unsigned short)s->rendData[dacPos]+0x8000)>>9); } } - if (dacPos>=s->rendLength) { + if (++dacPos>=s->rendLength) { if (s->loopStart>=0 && s->loopStart<=(int)s->rendLength) { dacPos=s->loopStart; } else {