S3M import: more stuff

This commit is contained in:
tildearrow 2024-06-24 02:50:44 -05:00
parent 6d8a343ead
commit 5cec39587c
2 changed files with 5 additions and 0 deletions

View file

@ -776,6 +776,9 @@ bool DivEngine::loadS3M(unsigned char* file, size_t len) {
volSlideStatus[chan]=effectVal;
volSlideStatusChanged[chan]=true;
}
if (hasNoteIns) {
volSlideStatusChanged[chan]=true;
}
volSliding[chan]=true;
break;
case 'E': // pitch down

View file

@ -1083,11 +1083,13 @@ void DivEngine::processRow(int i, bool afterDelay) {
dispatchCmd(DivCommand(DIV_CMD_MACRO_RESTART,i,effectVal&0xff));
break;
case 0xf8: // single volume ramp up
chan[i].volSpeed=0; // add compat flag?
chan[i].volume=MIN(chan[i].volume+effectVal*256,chan[i].volMax);
dispatchCmd(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
dispatchCmd(DivCommand(DIV_CMD_HINT_VOLUME,i,chan[i].volume>>8));
break;
case 0xf9: // single volume ramp down
chan[i].volSpeed=0; // add compat flag?
chan[i].volume=MAX(chan[i].volume-effectVal*256,0);
dispatchCmd(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
dispatchCmd(DivCommand(DIV_CMD_HINT_VOLUME,i,chan[i].volume>>8));