Mercurial > hg > svgui
diff layer/SpectrogramLayer.h @ 1473:886c1cd48f9d by-id
Further layer updates for ModelById
author | Chris Cannam |
---|---|
date | Tue, 02 Jul 2019 11:49:52 +0100 |
parents | dbff4b290bf0 |
children | e540aa5d89cd |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h Mon Jul 01 14:25:53 2019 +0100 +++ b/layer/SpectrogramLayer.h Tue Jul 02 11:49:52 2019 +0100 @@ -306,10 +306,11 @@ int getFFTSize() const; // m_windowSize * getOversampling() + // We take responsibility for registering/deregistering these + // models and caches with ModelById ModelId m_fftModel; // an FFTModel - Dense3DModelPeakCache *m_wholeCache; - Dense3DModelPeakCache *m_peakCache; - Dense3DModelPeakCache *getPeakCache() const { return m_peakCache; } + ModelId m_wholeCache; // a Dense3DModelPeakCache + ModelId m_peakCache; // a Dense3DModelPeakCache int m_peakCacheDivisor; void checkCacheSpace(int *suggestedPeakDivisor, bool *createWholeCache) const;