1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02: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

@@ -799,6 +799,12 @@ unsigned int Sequence::GetODFlags()
return ret;
}
sampleCount Sequence::GetBlockStart(sampleCount position) const
{
int b = FindBlock(position);
return mBlock->Item(b)->start;
}
sampleCount Sequence::GetBestBlockSize(sampleCount start) const
{
// This method returns a nice number of samples you should try to grab in