mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
fix WaveTrackCache, again...
... There was still some duplicated loading of block files during normal forward play, though not more than two loads per file.
This commit is contained in:
@@ -646,6 +646,13 @@ private:
|
||||
Buffer() : data(0), start(0), len(0) {}
|
||||
void Free() { delete[] data; data = 0; start = 0; len = 0; }
|
||||
sampleCount end() const { return start + len; }
|
||||
|
||||
void swap ( Buffer &other )
|
||||
{
|
||||
std::swap( data, other.data );
|
||||
std::swap( start, other.start );
|
||||
std::swap( len, other.len );
|
||||
}
|
||||
};
|
||||
|
||||
const WaveTrack *mPTrack;
|
||||
|
||||
Reference in New Issue
Block a user