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

Construction of default play options moved out of AudacityProject

This commit is contained in:
Paul Licameli
2019-01-19 16:54:41 -05:00
parent 0a109d2432
commit ae18f2f220
8 changed files with 28 additions and 29 deletions

View File

@@ -769,7 +769,7 @@ void ControlToolBar::PlayCurrentRegion(bool looped /* = false */,
double playRegionStart, playRegionEnd;
p->GetPlayRegion(&playRegionStart, &playRegionEnd);
AudioIOStartStreamOptions options(p->GetDefaultPlayOptions());
auto options = DefaultPlayOptions( *p );
options.playLooped = looped;
if (cutpreview)
options.timeTrack = NULL;
@@ -1059,7 +1059,7 @@ void ControlToolBar::OnRecord(wxCommandEvent &evt)
}
transportTracks.captureTracks = existingTracks;
AudioIOStartStreamOptions options(p->GetDefaultPlayOptions());
auto options = DefaultPlayOptions( *p );
DoRecord(*p, transportTracks, t0, t1, altAppearance, options);
}
}