VGM export: prepare for Lynx samples
This commit is contained in:
parent
a0f0c863c9
commit
d5154a103e
|
@ -1687,6 +1687,8 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop, int version, bool p
|
||||||
if (!hasLynx) {
|
if (!hasLynx) {
|
||||||
hasLynx=disCont[i].dispatch->chipClock;
|
hasLynx=disCont[i].dispatch->chipClock;
|
||||||
willExport[i]=true;
|
willExport[i]=true;
|
||||||
|
// once again
|
||||||
|
writeDACSamples=true;
|
||||||
} else if (!(hasLynx&0x40000000)) {
|
} else if (!(hasLynx&0x40000000)) {
|
||||||
isSecond[i]=true;
|
isSecond[i]=true;
|
||||||
willExport[i]=true;
|
willExport[i]=true;
|
||||||
|
@ -2538,6 +2540,26 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop, int version, bool p
|
||||||
w->writeC(0);
|
w->writeC(0);
|
||||||
streamID++;
|
streamID++;
|
||||||
break;
|
break;
|
||||||
|
case DIV_SYSTEM_LYNX:
|
||||||
|
for (int j=0; j<4; j++) {
|
||||||
|
w->writeC(0x90);
|
||||||
|
w->writeC(streamID);
|
||||||
|
w->writeC(isSecond[i]?0xa9:0x29);
|
||||||
|
w->writeC(0); // port
|
||||||
|
w->writeC(0x22+(j<<3)); // output write
|
||||||
|
|
||||||
|
w->writeC(0x91);
|
||||||
|
w->writeC(streamID);
|
||||||
|
w->writeC(0);
|
||||||
|
w->writeC(1);
|
||||||
|
w->writeC(0);
|
||||||
|
|
||||||
|
w->writeC(0x92);
|
||||||
|
w->writeC(streamID);
|
||||||
|
w->writeI(16000); // default
|
||||||
|
streamID++;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue