1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-13 16:15:48 +01:00

Stop playback of pre-rolled tracks at the right time

This commit is contained in:
Paul Licameli
2018-06-01 02:25:51 -04:00
parent 35c60ac96d
commit f9cd5595d5
3 changed files with 25 additions and 7 deletions

View File

@@ -1125,6 +1125,13 @@ bool ControlToolBar::DoRecord(AudacityProject &project,
{
t1 = wt->GetEndTime();
// If the track was chosen for recording and playback both,
// remember the original in preroll tracks, before making the
// pending replacement.
bool prerollTrack = make_iterator_range(transportTracks.playbackTracks).contains(wt);
if (prerollTrack)
transportTracks.prerollTracks.push_back(wt);
// A function that copies all the non-sample data between
// wave tracks; in case the track recorded to changes scale
// type (for instance), during the recording.