mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 12:12:23 +01:00
WaveTrack.cpp does not depend on ODManager.cpp ...
... Breaking up an s.c.c. of 6 into 3 components: ODManager, ODTask, ODWaveTrackTaskQueue UndoManager WaveClip, WaveTrack Rewrite the OD tasks and queues to hold weak pointers to tracks, so the track destructor need not notify them.
This commit is contained in:
@@ -210,7 +210,7 @@ void ProjectFileManager::EnqueueODTasks()
|
||||
//add the track to the already created tasks that correspond to the od flags in the wavetrack.
|
||||
for(unsigned int i=0;i<newTasks.size();i++) {
|
||||
if(newTasks[i]->GetODType() & odFlags)
|
||||
newTasks[i]->AddWaveTrack(wt);
|
||||
newTasks[i]->AddWaveTrack(wt->SharedPointer< WaveTrack >());
|
||||
}
|
||||
|
||||
//create whatever NEW tasks we need to.
|
||||
@@ -236,7 +236,7 @@ void ProjectFileManager::EnqueueODTasks()
|
||||
}
|
||||
if(newTask)
|
||||
{
|
||||
newTask->AddWaveTrack(wt);
|
||||
newTask->AddWaveTrack(wt->SharedPointer< WaveTrack >());
|
||||
newTasks.push_back(std::move(newTask));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user