PCE: also fix issue here (i think)

This commit is contained in:
tildearrow 2022-02-14 02:45:20 -05:00
parent b319614fb5
commit 1c3074bb43

View file

@ -204,6 +204,7 @@ int DivPlatformPCE::dispatch(DivCommand c) {
chan[c.chan].pcm=false; chan[c.chan].pcm=false;
} }
if (chan[c.chan].pcm) { if (chan[c.chan].pcm) {
if (skipRegisterWrites) break;
if (ins->type==DIV_INS_AMIGA) { if (ins->type==DIV_INS_AMIGA) {
chan[c.chan].dacSample=ins->amiga.initSample; chan[c.chan].dacSample=ins->amiga.initSample;
if (chan[c.chan].dacSample<0 || chan[c.chan].dacSample>=parent->song.sampleLen) { if (chan[c.chan].dacSample<0 || chan[c.chan].dacSample>=parent->song.sampleLen) {