mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +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);
|
||||
}
|
||||
|
||||
TrackList::Get( *p ).RegisterPendingNewTrack( newTrack );
|
||||
|
||||
if ((recordingChannels > 2) &&
|
||||
!(ProjectSettings::Get(*p).GetTracksFitVerticallyZoomed())) {
|
||||
TrackView::Get( *newTrack ).SetMinimized(true);
|
||||
}
|
||||
|
||||
TrackList::Get( *p ).RegisterPendingNewTrack( newTrack );
|
||||
transportTracks.captureTracks.push_back(newTrack);
|
||||
// Bug 1548. New track needs the focus.
|
||||
TrackFocus::Get( *p ).Set( newTrack.get() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user