diff layer/SpectrogramLayer.h @ 1459:42c87368287c

Merge from branch single-point
author Chris Cannam
date Fri, 17 May 2019 10:02:52 +0100
parents 6cf3cb6641e1
children 696e569ff21b
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h	Wed Apr 24 11:29:53 2019 +0100
+++ b/layer/SpectrogramLayer.h	Fri May 17 10:02:52 2019 +0100
@@ -311,8 +311,9 @@
     Dense3DModelPeakCache *m_wholeCache;
     Dense3DModelPeakCache *m_peakCache;
     Dense3DModelPeakCache *getPeakCache() const { return m_peakCache; }
-    const int m_peakCacheDivisor;
-    bool canStoreWholeCache() const;
+    int m_peakCacheDivisor;
+    void checkCacheSpace(int *suggestedPeakDivisor,
+                         bool *createWholeCache) const;
     void recreateFFTModel();
 
     typedef std::map<int, MagnitudeRange> ViewMagMap; // key is view id