mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 21:15:11 +00:00
genesis: fix muting the PCM channel
This commit is contained in:
parent
efd5e844ce
commit
3a0e94df5e
1 changed files with 6 additions and 4 deletions
|
@ -21,11 +21,13 @@ void DivPlatformGenesis::acquire(short* bufL, short* bufR, size_t start, size_t
|
||||||
dacPeriod-=6;
|
dacPeriod-=6;
|
||||||
if (dacPeriod<1) {
|
if (dacPeriod<1) {
|
||||||
DivSample* s=parent->song.sample[dacSample];
|
DivSample* s=parent->song.sample[dacSample];
|
||||||
|
if (!isMuted[5]) {
|
||||||
if (s->depth==8) {
|
if (s->depth==8) {
|
||||||
writes.emplace(0x2a,(unsigned char)s->rendData[dacPos++]+0x80);
|
writes.emplace(0x2a,(unsigned char)s->rendData[dacPos++]+0x80);
|
||||||
} else {
|
} else {
|
||||||
writes.emplace(0x2a,((unsigned short)s->rendData[dacPos++]+0x8000)>>8);
|
writes.emplace(0x2a,((unsigned short)s->rendData[dacPos++]+0x8000)>>8);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (dacPos>=s->rendLength) {
|
if (dacPos>=s->rendLength) {
|
||||||
dacSample=-1;
|
dacSample=-1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue