(12*sampleBank+c.value%12)

This commit is contained in:
tildearrow 2022-10-04 00:46:16 -05:00
parent 4695659ae4
commit d981e59c59
4 changed files with 4 additions and 2 deletions

View file

@ -561,6 +561,7 @@ int DivPlatformX1_010::dispatch(DivCommand c) {
} else {
chan[c.chan].macroInit(NULL);
chan[c.chan].outVol=chan[c.chan].vol;
// huh?
if ((12*sampleBank+c.value%12)>=parent->song.sampleLen) {
chWrite(c.chan,0,0); // reset
chWrite(c.chan,1,0);