1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-12 14:26:09 +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:
Paul Licameli
2019-06-05 11:46:07 -04:00
parent 71250b1dc3
commit 86320838de
16 changed files with 101 additions and 120 deletions

View File

@@ -53,8 +53,6 @@ Track classes.
#include "Prefs.h"
#include "ondemand/ODManager.h"
#include "effects/TimeWarper.h"
#include "prefs/SpectrogramSettings.h"
#include "prefs/TracksPrefs.h"
@@ -213,10 +211,6 @@ void WaveTrack::Merge(const Track &orig)
WaveTrack::~WaveTrack()
{
//Let the ODManager know this WaveTrack is disappearing.
//Deschedules tasks associated with this track.
if(ODManager::IsInstanceCreated())
ODManager::Instance()->RemoveWaveTrack(this);
}
double WaveTrack::GetOffset() const