1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-20 14:20:06 +02:00

Disable caching for reassigned spectrogram

This commit is contained in:
Paul Licameli 2015-08-17 10:03:21 -04:00
parent 84ee685ee9
commit 9505278c44

View File

@ -1055,7 +1055,7 @@ bool WaveClip::GetSpectrogram(WaveTrackCache &waveTrackCache,
const int fftLen = windowSize * zeroPaddingFactor;
const int half = fftLen / 2;
const bool match =
bool match =
mSpecCache &&
mSpecCache->len > 0 &&
mSpecCache->Matches
@ -1069,6 +1069,11 @@ bool WaveClip::GetSpectrogram(WaveTrackCache &waveTrackCache,
return false; //hit cache completely
}
if (settings.algorithm == SpectrogramSettings::algReassignment)
// Caching is not implemented for reassignment, unless for
// a complete hit, because of the complications of time reassignment
match = false;
std::auto_ptr<SpecCache> oldCache(mSpecCache);
mSpecCache = 0;