fix repeat pattern hanging audio/VGM export

This commit is contained in:
tildearrow 2022-02-21 23:05:41 -05:00
parent 6ffb332c4e
commit 4db91256b1
2 changed files with 2 additions and 0 deletions

View File

@ -400,6 +400,7 @@ bool DivEngine::saveAudio(const char* path, int loops, DivAudioExportModes mode)
exportMode=mode;
exporting=true;
stop();
repeatPattern=false;
setOrder(0);
remainingLoops=loops;
exportThread=new std::thread(_runExportThread,this);

View File

@ -385,6 +385,7 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write
SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) {
stop();
repeatPattern=false;
setOrder(0);
isBusy.lock();
double origRate=got.rate;