yay ADPCM-A and QSound work again!

This commit is contained in:
tildearrow 2022-02-24 16:16:02 -05:00
parent 1e98f0c4a1
commit f7bd06c4eb
6 changed files with 47 additions and 43 deletions

View file

@ -928,14 +928,14 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) {
delete[] pcmMem;
}
if (writeADPCM && adpcmMemLen>0) {
if (writeADPCM && adpcmAMemLen>0) {
w->writeC(0x67);
w->writeC(0x66);
w->writeC(0x82);
w->writeI(adpcmMemLen+8);
w->writeI(adpcmMemLen);
w->writeI(adpcmAMemLen+8);
w->writeI(adpcmAMemLen);
w->writeI(0);
w->write(adpcmMem,adpcmMemLen);
w->write(adpcmAMem,adpcmAMemLen);
}
if (writeQSound && qsoundMemLen>0) {