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:
committed by
Paul Licameli
parent
16e0fe3e12
commit
bdc2839112
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user