GUI: threaded command stream export, part 1
no progress bar yet
This commit is contained in:
parent
ad5fb97822
commit
05da08d6da
3 changed files with 99 additions and 30 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue