GUI: threaded command stream export, part 1

no progress bar yet
This commit is contained in:
tildearrow 2025-04-08 04:59:00 -05:00
parent ad5fb97822
commit 05da08d6da
3 changed files with 99 additions and 30 deletions

View file

@ -207,17 +207,7 @@ void FurnaceGUI::drawCSPlayer() {
ImGui::SameLine();
if (ImGui::Button(_("Burn Current Song"))) {
e->killStream();
SafeWriter* w=e->saveCommand(NULL,csExportDisablePass);
if (w!=NULL) {
if (!e->playStream(w->getFinalBuf(),w->size())) {
showError(e->getLastError());
w->finish();
delete w;
} else {
w->disown();
delete w;
}
}
exportCmdStream(true,"");
}
if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) {
ImGui::OpenPopup("CSOptions");