VGM export: write resets and GD3 tag
may be non-standard compliant (yet) also it crashes foobar2000 for some reason but this will be fixed
This commit is contained in:
parent
c7ee0ce642
commit
8bcab6e139
17 changed files with 388 additions and 6 deletions
|
|
@ -538,6 +538,7 @@ void DivPlatformGenesis::forceIns() {
|
|||
rWrite(0x2b,0x80);
|
||||
}
|
||||
immWrite(0x22,lfoValue);
|
||||
psg.forceIns();
|
||||
}
|
||||
|
||||
void DivPlatformGenesis::toggleRegisterDump(bool enable) {
|
||||
|
|
@ -548,6 +549,9 @@ void DivPlatformGenesis::toggleRegisterDump(bool enable) {
|
|||
void DivPlatformGenesis::reset() {
|
||||
while (!writes.empty()) writes.pop();
|
||||
OPN2_Reset(&fm);
|
||||
if (dumpWrites) {
|
||||
addWrite(0xffffffff,0);
|
||||
}
|
||||
for (int i=0; i<10; i++) {
|
||||
chan[i]=DivPlatformGenesis::Channel();
|
||||
chan[i].vol=0x7f;
|
||||
|
|
@ -576,6 +580,7 @@ void DivPlatformGenesis::reset() {
|
|||
|
||||
// PSG
|
||||
psg.reset();
|
||||
psg.getRegisterWrites().clear();
|
||||
psgClocks=0;
|
||||
psgOut=0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue