1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-07 15:05:38 +01:00

Bug 1600: Should keep progress dialog visible throughout Exp. Multi

This commit is contained in:
Paul Licameli
2018-01-25 15:58:37 -05:00
parent f5737be02c
commit d4b21bb33e
13 changed files with 124 additions and 58 deletions

View File

@@ -133,6 +133,7 @@ public:
wxWindow *OptionsCreate(wxWindow *parent, int format) override;
ProgressResult Export(AudacityProject *project,
std::unique_ptr<ProgressDialog> &pDialog,
unsigned channels,
const wxString &fName,
bool selectedOnly,
@@ -159,6 +160,7 @@ ExportOGG::ExportOGG()
}
ProgressResult ExportOGG::Export(AudacityProject *project,
std::unique_ptr<ProgressDialog> &pDialog,
unsigned numChannels,
const wxString &fName,
bool selectionOnly,
@@ -281,10 +283,11 @@ ProgressResult ExportOGG::Export(AudacityProject *project,
numChannels, SAMPLES_PER_RUN, false,
rate, floatSample, true, mixerSpec);
ProgressDialog progress(wxFileName(fName).GetName(),
selectionOnly ?
_("Exporting the selected audio as Ogg Vorbis") :
_("Exporting the audio as Ogg Vorbis"));
InitProgress( pDialog, wxFileName(fName).GetName(),
selectionOnly
? _("Exporting the selected audio as Ogg Vorbis")
: _("Exporting the audio as Ogg Vorbis") );
auto &progress = *pDialog;
while (updateResult == ProgressResult::Success && !eos) {
float **vorbis_buffer = vorbis_analysis_buffer(&dsp, SAMPLES_PER_RUN);