NES: same thing
This commit is contained in:
parent
371c23a7ee
commit
413fbd985a
|
@ -17,12 +17,12 @@ void DivPlatformNES::acquire(short* bufL, short* bufR, size_t start, size_t len)
|
||||||
DivSample* s=parent->song.sample[dacSample];
|
DivSample* s=parent->song.sample[dacSample];
|
||||||
if (!isMuted[4]) {
|
if (!isMuted[4]) {
|
||||||
if (s->depth==8) {
|
if (s->depth==8) {
|
||||||
rWrite(0x4011,((unsigned char)s->rendData[dacPos++]+0x80)>>1);
|
rWrite(0x4011,((unsigned char)s->rendData[dacPos]+0x80)>>1);
|
||||||
} else {
|
} 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) {
|
if (s->loopStart>=0 && s->loopStart<=(int)s->rendLength) {
|
||||||
dacPos=s->loopStart;
|
dacPos=s->loopStart;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue