1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-16 17:41:15 +01:00

Don't invalidate SpecCache for changes of min, max, gain or range...

... because those do not affect it.  They only affect the SpecPxCache.

Did other things to that class:  renamed fields, new constructors.
This commit is contained in:
Paul Licameli
2015-06-03 23:02:37 -04:00
parent 77a79c727c
commit 38f24a42ef
3 changed files with 118 additions and 83 deletions

View File

@@ -43,6 +43,7 @@ public:
len = cacheLen;
values = new float[len];
valid = false;
range = gain = -1;
}
~SpecPxCache()
@@ -53,6 +54,9 @@ public:
sampleCount len;
float *values;
bool valid;
int range;
int gain;
};
class WaveClip;