VGM export: fix direct stream mode buggy duration

This commit is contained in:
tildearrow 2022-10-22 03:53:31 -05:00
parent 9b6449d320
commit f5b0604d4a

View file

@ -1986,9 +1986,11 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop, int version, bool p
} }
// write write // write write
performVGMWrite(w,song.system[i.first],i.second.write,streamIDs[i.first],loopTimer,loopFreq,loopSample,sampleDir,isSecond[i.first],directStream); performVGMWrite(w,song.system[i.first],i.second.write,streamIDs[i.first],loopTimer,loopFreq,loopSample,sampleDir,isSecond[i.first],directStream);
writeCount++;
} }
sortedWrites.clear(); sortedWrites.clear();
totalWait-=lastOne; totalWait-=lastOne;
tickCount+=lastOne;
} }
} else { } else {
for (int i=0; i<streamID; i++) { for (int i=0; i<streamID; i++) {