Reset src/engine/playback.cpp

This commit is contained in:
techmetx11 2024-04-23 19:51:35 +01:00
parent de6b5bb381
commit 0f1eee4a0c
No known key found for this signature in database
GPG key ID: 20E0C88A0E7E5AF2

View file

@ -782,7 +782,6 @@ void DivEngine::processRow(int i, bool afterDelay) {
chan[i].vibratoDepth=chan[i].lastVibrato&15; chan[i].vibratoDepth=chan[i].lastVibrato&15;
chan[i].vibratoRate=chan[i].lastVibrato>>4; chan[i].vibratoRate=chan[i].lastVibrato>>4;
} }
dispatchCmd(DivCommand(DIV_CMD_HINT_VIBRATO,i,chan[i].vibratoDepth,chan[i].vibratoRate)); dispatchCmd(DivCommand(DIV_CMD_HINT_VIBRATO,i,chan[i].vibratoDepth,chan[i].vibratoRate));
dispatchCmd(DivCommand(DIV_CMD_PITCH,i,chan[i].pitch+(((chan[i].vibratoDepth*vibTable[chan[i].vibratoPos]*chan[i].vibratoFine)>>4)/15))); dispatchCmd(DivCommand(DIV_CMD_PITCH,i,chan[i].pitch+(((chan[i].vibratoDepth*vibTable[chan[i].vibratoPos]*chan[i].vibratoFine)>>4)/15)));
// TODO: non-0x-or-x0 value should be treated as 00 // TODO: non-0x-or-x0 value should be treated as 00
@ -1127,7 +1126,6 @@ void DivEngine::processRow(int i, bool afterDelay) {
if (!song.continuousVibrato) { if (!song.continuousVibrato) {
chan[i].vibratoPos=0; chan[i].vibratoPos=0;
} }
dispatchCmd(DivCommand(DIV_CMD_PITCH,i,chan[i].pitch+(((chan[i].vibratoDepth*vibTable[chan[i].vibratoPos]*chan[i].vibratoFine)>>4)/15))); dispatchCmd(DivCommand(DIV_CMD_PITCH,i,chan[i].pitch+(((chan[i].vibratoDepth*vibTable[chan[i].vibratoPos]*chan[i].vibratoFine)>>4)/15)));
if (chan[i].legato && (!chan[i].inPorta || song.brokenPortaLegato)) { if (chan[i].legato && (!chan[i].inPorta || song.brokenPortaLegato)) {
dispatchCmd(DivCommand(DIV_CMD_LEGATO,i,chan[i].note)); dispatchCmd(DivCommand(DIV_CMD_LEGATO,i,chan[i].note));
@ -1156,7 +1154,6 @@ void DivEngine::processRow(int i, bool afterDelay) {
} }
} }
chan[i].doNote=false; chan[i].doNote=false;
if (!chan[i].keyOn && chan[i].scheduledSlideReset) { if (!chan[i].keyOn && chan[i].scheduledSlideReset) {
chan[i].portaNote=-1; chan[i].portaNote=-1;
chan[i].portaSpeed=-1; chan[i].portaSpeed=-1;