NES: same thing

This commit is contained in:
tildearrow 2022-01-22 02:38:01 -05:00
parent 371c23a7ee
commit 413fbd985a
1 changed files with 3 additions and 3 deletions

View File

@ -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 {