remove loop command from command stream

it is unused
This commit is contained in:
tildearrow 2025-04-17 19:13:39 -05:00
parent 334d4bab67
commit 134954412d
5 changed files with 20 additions and 24 deletions

View file

@ -220,23 +220,6 @@ bool DivCSPlayer::tick() {
break;
case 0xd1: // nop
break;
case 0xd3: { // loop
unsigned char loopOff=stream.readC();
if (chan[i].loopCount>0) {
stream.readC();
if (--chan[i].loopCount) {
// jump
chan[i].readPos-=loopOff;
mustTell=false;
}
} else {
chan[i].loopCount=stream.readC();
// jump
chan[i].readPos-=loopOff;
mustTell=false;
}
break;
}
case 0xd6: // note off + wait 1
e->dispatchCmd(DivCommand(DIV_CMD_NOTE_OFF,i));
chan[i].waitTicks=1;

View file

@ -38,7 +38,7 @@ struct DivCSChannelState {
int volume, volMax, volSpeed, volSpeedTarget;
int vibratoDepth, vibratoRate, vibratoPos, vibratoRange, vibratoShape;
int portaTarget, portaSpeed;
unsigned char arp, arpStage, arpTicks, loopCount;
unsigned char arp, arpStage, arpTicks;
unsigned int callStack[DIV_MAX_CSSTACK];
unsigned char callStackPos;
@ -66,7 +66,6 @@ struct DivCSChannelState {
arp(0),
arpStage(0),
arpTicks(0),
loopCount(0),
callStackPos(0),
tracePos(0) {
for (int i=0; i<DIV_MAX_CSTRACE; i++) {