YM2612: fix per-chan osc overflow in 276

This commit is contained in:
tildearrow 2023-02-10 18:47:31 -05:00
parent ece7e4460a
commit 9cd609e738

View file

@ -183,10 +183,10 @@ void DivPlatformGenesis::acquire_nuked(short** buf, size_t len) {
oscBuf[i]->data[oscBuf[i]->needle++]=fm.dacdata<<7; oscBuf[i]->data[oscBuf[i]->needle++]=fm.dacdata<<7;
} }
} else { } else {
oscBuf[i]->data[oscBuf[i]->needle++]=fm.ch_out[i]<<(chipType==2?2:7); oscBuf[i]->data[oscBuf[i]->needle++]=fm.ch_out[i]<<(chipType==2?0:7);
} }
} else { } else {
oscBuf[i]->data[oscBuf[i]->needle++]=fm.ch_out[i]<<(chipType==2?2:7); oscBuf[i]->data[oscBuf[i]->needle++]=fm.ch_out[i]<<(chipType==2?0:7);
} }
} }