Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
1472:dbff4b290bf0 | 1473:886c1cd48f9d |
---|---|
304 else return m_windowSize / (1 << (m_windowHopLevel - 1)); | 304 else return m_windowSize / (1 << (m_windowHopLevel - 1)); |
305 } | 305 } |
306 | 306 |
307 int getFFTSize() const; // m_windowSize * getOversampling() | 307 int getFFTSize() const; // m_windowSize * getOversampling() |
308 | 308 |
309 // We take responsibility for registering/deregistering these | |
310 // models and caches with ModelById | |
309 ModelId m_fftModel; // an FFTModel | 311 ModelId m_fftModel; // an FFTModel |
310 Dense3DModelPeakCache *m_wholeCache; | 312 ModelId m_wholeCache; // a Dense3DModelPeakCache |
311 Dense3DModelPeakCache *m_peakCache; | 313 ModelId m_peakCache; // a Dense3DModelPeakCache |
312 Dense3DModelPeakCache *getPeakCache() const { return m_peakCache; } | |
313 int m_peakCacheDivisor; | 314 int m_peakCacheDivisor; |
314 void checkCacheSpace(int *suggestedPeakDivisor, | 315 void checkCacheSpace(int *suggestedPeakDivisor, |
315 bool *createWholeCache) const; | 316 bool *createWholeCache) const; |
316 void recreateFFTModel(); | 317 void recreateFFTModel(); |
317 | 318 |