VGM export: fix SN chip mode not being set

This commit is contained in:
tildearrow 2022-01-30 23:51:35 -05:00
parent 352441449d
commit 432f440be5

View file

@ -2647,6 +2647,20 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) {
if (!hasSN) {
hasSN=disCont[i].dispatch->chipClock;
willExport[i]=true;
switch ((song.systemFlags[i]>>2)&3) {
case 1: // real SN
snNoiseConfig=3;
snNoiseSize=15;
break;
case 2: // real SN atari bass (seemingly unsupported)
snNoiseConfig=3;
snNoiseSize=15;
break;
default: // Sega VDP
snNoiseConfig=9;
snNoiseSize=16;
break;
}
} else if (!(hasSN&0x40000000)) {
isSecond[i]=true;
willExport[i]=true;