1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Preliminaries for bug 900

Create WaveTrackCache as a utility class but don't use it anywhere yet.

The possible minor performance problem with effects is fixed by changes
in WaveTrack::GetBestBlockSize().
This commit is contained in:
Paul-Licameli
2015-03-28 14:46:40 -04:00
committed by Paul Licameli
parent 16e0fe3e12
commit bdc2839112
17 changed files with 365 additions and 60 deletions

View File

@@ -29,6 +29,7 @@ for drawing different aspects of the label and its text box.
*//*******************************************************************/
#include "Audacity.h"
#include "LabelTrack.h"
#include <stdio.h>
@@ -48,7 +49,6 @@ for drawing different aspects of the label and its text box.
#include <wx/utils.h>
#include "AudioIO.h"
#include "LabelTrack.h"
#include "DirManager.h"
#include "Internat.h"
#include "Prefs.h"
@@ -1117,7 +1117,12 @@ bool LabelTrack::IsTextClipSupported()
}
double LabelTrack::GetStartTime()
double LabelTrack::GetOffset() const
{
return mOffset;
}
double LabelTrack::GetStartTime() const
{
int len = mLabels.Count();
@@ -1127,7 +1132,7 @@ double LabelTrack::GetStartTime()
return mLabels[0]->getT0();
}
double LabelTrack::GetEndTime()
double LabelTrack::GetEndTime() const
{
//we need to scan through all the labels, because the last
//label might not have the right-most end (if there is overlap).