Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 88:6b864e6864cb
* Introduce simple non-RT thread base class
* Rename MatrixFileCache to MatrixFile
* some fixes & tidying
author | Chris Cannam |
---|---|
date | Thu, 04 May 2006 16:03:02 +0000 |
parents | 4b98bda7e94d |
children | 7d06e7cf5d5a |
comparison
equal
deleted
inserted
replaced
87:4b98bda7e94d | 88:6b864e6864cb |
---|---|
17 #define _SPECTROGRAM_LAYER_H_ | 17 #define _SPECTROGRAM_LAYER_H_ |
18 | 18 |
19 #include "base/Layer.h" | 19 #include "base/Layer.h" |
20 #include "base/Window.h" | 20 #include "base/Window.h" |
21 #include "base/RealTime.h" | 21 #include "base/RealTime.h" |
22 #include "base/NonRTThread.h" | |
22 #include "model/PowerOfSqrtTwoZoomConstraint.h" | 23 #include "model/PowerOfSqrtTwoZoomConstraint.h" |
23 #include "model/DenseTimeValueModel.h" | 24 #include "model/DenseTimeValueModel.h" |
24 | 25 |
25 #include <QThread> | |
26 #include <QMutex> | 26 #include <QMutex> |
27 #include <QWaitCondition> | 27 #include <QWaitCondition> |
28 | 28 |
29 #include <fftw3.h> | 29 #include <fftw3.h> |
30 | 30 |
238 ColourMap m_colourMap; | 238 ColourMap m_colourMap; |
239 FFTCacheBase *m_cache; | 239 FFTCacheBase *m_cache; |
240 FFTCacheBase *m_writeCache; | 240 FFTCacheBase *m_writeCache; |
241 bool m_cacheInvalid; | 241 bool m_cacheInvalid; |
242 | 242 |
243 class CacheFillThread : public QThread | 243 class CacheFillThread : public NonRTThread |
244 { | 244 { |
245 public: | 245 public: |
246 CacheFillThread(SpectrogramLayer &layer) : | 246 CacheFillThread(SpectrogramLayer &layer) : |
247 m_layer(layer), m_fillExtent(0) { } | 247 m_layer(layer), m_fillExtent(0) { } |
248 | 248 |