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:
parent
84ee685ee9
commit
9505278c44
@ -1055,7 +1055,7 @@ bool WaveClip::GetSpectrogram(WaveTrackCache &waveTrackCache,
|
|||||||
const int fftLen = windowSize * zeroPaddingFactor;
|
const int fftLen = windowSize * zeroPaddingFactor;
|
||||||
const int half = fftLen / 2;
|
const int half = fftLen / 2;
|
||||||
|
|
||||||
const bool match =
|
bool match =
|
||||||
mSpecCache &&
|
mSpecCache &&
|
||||||
mSpecCache->len > 0 &&
|
mSpecCache->len > 0 &&
|
||||||
mSpecCache->Matches
|
mSpecCache->Matches
|
||||||
@ -1069,6 +1069,11 @@ bool WaveClip::GetSpectrogram(WaveTrackCache &waveTrackCache,
|
|||||||
return false; //hit cache completely
|
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);
|
std::auto_ptr<SpecCache> oldCache(mSpecCache);
|
||||||
mSpecCache = 0;
|
mSpecCache = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user