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

ExportPlugin::CreateMixer returns a smart pointer

This commit is contained in:
Paul Licameli
2016-03-31 01:33:17 -04:00
parent e6e7b73043
commit ff3e3d0e83
9 changed files with 61 additions and 75 deletions

View File

@@ -241,13 +241,13 @@ int ExportOGG::Export(AudacityProject *project,
const WaveTrackConstArray waveTracks =
tracks->GetWaveTrackConstArray(selectionOnly, false);
Mixer *mixer = CreateMixer(waveTracks,
tracks->GetTimeTrack(),
t0, t1,
numChannels, SAMPLES_PER_RUN, false,
rate, floatSample, true, mixerSpec);
{
auto mixer = CreateMixer(waveTracks,
tracks->GetTimeTrack(),
t0, t1,
numChannels, SAMPLES_PER_RUN, false,
rate, floatSample, true, mixerSpec);
ProgressDialog progress(wxFileName(fName).GetName(),
selectionOnly ?
_("Exporting the selected audio as Ogg Vorbis") :
@@ -313,8 +313,6 @@ int ExportOGG::Export(AudacityProject *project,
}
}
delete mixer;
ogg_stream_clear(&stream);
vorbis_block_clear(&block);