1
0
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:
Paul Licameli
2017-02-21 09:07:25 -05:00
parent 40651241d9
commit 31832b21a3
2 changed files with 9 additions and 6 deletions

View File

@@ -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;