mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-04 22:29:27 +02:00
Bug2153: Don't crash recording to >2 channels
This commit is contained in:
parent
3f4ad05d37
commit
deb5126d81
@ -677,12 +677,13 @@ bool ProjectAudioManager::DoRecord(AudacityProject &project,
|
|||||||
newTrack->SetName(baseTrackName + wxT("_") + nameSuffix);
|
newTrack->SetName(baseTrackName + wxT("_") + nameSuffix);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TrackList::Get( *p ).RegisterPendingNewTrack( newTrack );
|
||||||
|
|
||||||
if ((recordingChannels > 2) &&
|
if ((recordingChannels > 2) &&
|
||||||
!(ProjectSettings::Get(*p).GetTracksFitVerticallyZoomed())) {
|
!(ProjectSettings::Get(*p).GetTracksFitVerticallyZoomed())) {
|
||||||
TrackView::Get( *newTrack ).SetMinimized(true);
|
TrackView::Get( *newTrack ).SetMinimized(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
TrackList::Get( *p ).RegisterPendingNewTrack( newTrack );
|
|
||||||
transportTracks.captureTracks.push_back(newTrack);
|
transportTracks.captureTracks.push_back(newTrack);
|
||||||
// Bug 1548. New track needs the focus.
|
// Bug 1548. New track needs the focus.
|
||||||
TrackFocus::Get( *p ).Set( newTrack.get() );
|
TrackFocus::Get( *p ).Set( newTrack.get() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user