From 1dd02dd3897b731a483d88e7ac3a05a8807c068c Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 19 Aug 2023 18:52:08 -0500 Subject: [PATCH] fix samples going away during audio export issue #1387 --- src/engine/engine.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index fea380863..4c1df9f7a 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -824,6 +824,7 @@ void DivEngine::runExportThread() { quitDispatch(); initDispatch(true); + renderSamples(); switch (exportMode) { case DIV_EXPORT_MODE_ONE: { @@ -837,6 +838,9 @@ void DivEngine::runExportThread() { sf=sfWrap.doOpen(exportPath.c_str(),SFM_WRITE,&si); if (sf==NULL) { logE("could not open file for writing! (%s)",sf_strerror(NULL)); + quitDispatch(); + initDispatch(false); + renderSamples(); exporting=false; return; } @@ -1151,6 +1155,7 @@ void DivEngine::runExportThread() { quitDispatch(); initDispatch(false); + renderSamples(); stopExport=false; } #else