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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user