mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-16 15:41:11 +02:00
static TrackList::Get()...
... not member function of AudacityProject
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
#include "../Project.h"
|
||||
#include "../ShuttleGui.h"
|
||||
#include "../Tags.h"
|
||||
#include "../Track.h"
|
||||
#include "../widgets/AudacityMessageBox.h"
|
||||
#include "../widgets/ProgressDialog.h"
|
||||
|
||||
@@ -212,7 +213,7 @@ ProgressResult ExportMP2::Export(AudacityProject *project,
|
||||
bool stereo = (channels == 2);
|
||||
long bitrate = gPrefs->Read(wxT("/FileFormats/MP2Bitrate"), 160);
|
||||
double rate = project->GetRate();
|
||||
const TrackList *tracks = project->GetTracks();
|
||||
const auto &tracks = TrackList::Get( *project );
|
||||
|
||||
wxLogNull logNo; /* temporarily disable wxWidgets error messages */
|
||||
|
||||
@@ -264,11 +265,11 @@ ProgressResult ExportMP2::Export(AudacityProject *project,
|
||||
ArrayOf<unsigned char> mp2Buffer{ mp2BufferSize };
|
||||
|
||||
const WaveTrackConstArray waveTracks =
|
||||
tracks->GetWaveTrackConstArray(selectionOnly, false);
|
||||
tracks.GetWaveTrackConstArray(selectionOnly, false);
|
||||
auto updateResult = ProgressResult::Success;
|
||||
{
|
||||
auto mixer = CreateMixer(waveTracks,
|
||||
tracks->GetTimeTrack(),
|
||||
tracks.GetTimeTrack(),
|
||||
t0, t1,
|
||||
stereo ? 2 : 1, pcmBufferSize, true,
|
||||
rate, int16Sample, true, mixerSpec);
|
||||
|
Reference in New Issue
Block a user