1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-09 13:12:17 +01:00

static TrackFactory::Get()...

... not member functions of AudacityProject
This commit is contained in:
Paul Licameli
2019-01-22 10:59:44 -05:00
parent 4ba4d0978b
commit 116ff70756
18 changed files with 99 additions and 73 deletions

View File

@@ -1144,7 +1144,7 @@ bool ControlToolBar::DoRecord(AudacityProject &project,
// Pad the recording track with silence, up to the
// maximum time.
auto newTrack = p->GetTrackFactory()->NewWaveTrack();
auto newTrack = TrackFactory::Get( *p ).NewWaveTrack();
newTrack->SetWaveColorIndex( wt->GetWaveColorIndex() );
newTrack->InsertSilence(0.0, t0 - endTime);
newTrack->Flush();
@@ -1178,7 +1178,7 @@ bool ControlToolBar::DoRecord(AudacityProject &project,
Track *first {};
for (int c = 0; c < recordingChannels; c++) {
auto newTrack = p->GetTrackFactory()->NewWaveTrack();
auto newTrack = TrackFactory::Get( *p ).NewWaveTrack();
if (!first)
first = newTrack.get();