total extinction of legacy sample mode, part 2
remove legacy sample bank completely
This commit is contained in:
parent
416148bd62
commit
0602a2f811
41 changed files with 10 additions and 1016 deletions
|
|
@ -186,18 +186,6 @@ int DivPlatformMSM6295::dispatch(DivCommand c) {
|
|||
} else {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
chan[c.chan].sample=-1;
|
||||
chan[c.chan].macroInit(NULL);
|
||||
chan[c.chan].outVol=chan[c.chan].vol;
|
||||
if ((12*sampleBank+c.value%12)<0 || (12*sampleBank+c.value%12)>=parent->song.sampleLen) {
|
||||
break;
|
||||
}
|
||||
//DivSample* s=parent->getSample(12*sampleBank+c.value%12);
|
||||
chan[c.chan].sample=12*sampleBank+c.value%12;
|
||||
rWriteDelay(0,(8<<c.chan),180); // turn off
|
||||
setPhrase(c.chan);
|
||||
rWrite(0,(16<<c.chan)|(8-chan[c.chan].outVol)); // turn on
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
@ -245,12 +233,6 @@ int DivPlatformMSM6295::dispatch(DivCommand c) {
|
|||
rateSel=c.value;
|
||||
rWrite(12,!rateSel);
|
||||
break;
|
||||
case DIV_CMD_SAMPLE_BANK:
|
||||
sampleBank=c.value;
|
||||
if (sampleBank>(parent->song.sample.size()/12)) {
|
||||
sampleBank=parent->song.sample.size()/12;
|
||||
}
|
||||
break;
|
||||
case DIV_CMD_LEGATO: {
|
||||
break;
|
||||
}
|
||||
|
|
@ -335,7 +317,6 @@ void DivPlatformMSM6295::reset() {
|
|||
chan[i].outVol=8;
|
||||
}
|
||||
|
||||
sampleBank=0;
|
||||
rateSel=rateSelInit;
|
||||
rWrite(12,!rateSelInit);
|
||||
if (isBanked) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue