mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-01 04:21:44 +00:00
VGM export: fix SN chip mode not being set
This commit is contained in:
parent
352441449d
commit
432f440be5
1 changed files with 14 additions and 0 deletions
|
@ -2647,6 +2647,20 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) {
|
||||||
if (!hasSN) {
|
if (!hasSN) {
|
||||||
hasSN=disCont[i].dispatch->chipClock;
|
hasSN=disCont[i].dispatch->chipClock;
|
||||||
willExport[i]=true;
|
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)) {
|
} else if (!(hasSN&0x40000000)) {
|
||||||
isSecond[i]=true;
|
isSecond[i]=true;
|
||||||
willExport[i]=true;
|
willExport[i]=true;
|
||||||
|
|
Loading…
Reference in a new issue