mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-12 15:45:54 +01:00
Reimplement Track::Pointer using std::enable_shared_from_this...
... now the Track need not be owned yet by a TrackList
This commit is contained in:
@@ -939,7 +939,7 @@ WaveTrackArray ControlToolBar::ChooseExistingRecordingTracks(
|
||||
}
|
||||
channelCounts.push_back(nChannels);
|
||||
for ( auto channel : channels ) {
|
||||
candidates.push_back(Track::Pointer<WaveTrack>(channel));
|
||||
candidates.push_back(channel->SharedPointer<WaveTrack>());
|
||||
if(candidates.size() == recordingChannels)
|
||||
// Done!
|
||||
return candidates;
|
||||
|
||||
Reference in New Issue
Block a user