comparison layer/SpectrogramLayer.h @ 33:651e4e868bcc

* Implement play mute, level and pan controls and a layer visibility control * Handle swapping the buffers in AudioCallbackPlaySource more gracefully, so that in many cases it can be done inaudibly. Still gets it wrong when playing in a noncontiguous selection. * Fix to SV file save for non-2d sparse models * Fixes to LED button drawing and AudioDial mouse functionality * Add progress bar for Ogg file import * Reshuffle PropertyContainer and its subclasses so it can be a QObject * Add layer dormancy (invisible layer permitted to free its cache space) * Optimisations to SpectrogramLayer, removing locks when reading/writing individual pixels in the cache (should be unnecessary there) -- there's still an issue here as we need a lock when reading from the model in case the model is replaced, and we don't currently have one * Several munlock() calls to make it harder to exhaust real memory if running in an RT mode with mlockall() active
author Chris Cannam
date Fri, 17 Feb 2006 18:04:26 +0000
parents fc802f7b112e
children 10ba9276a315
comparison
equal deleted inserted replaced
32:c53b949ef142 33:651e4e868bcc
138 virtual QString toXmlString(QString indent = "", 138 virtual QString toXmlString(QString indent = "",
139 QString extraAttributes = "") const; 139 QString extraAttributes = "") const;
140 140
141 void setProperties(const QXmlAttributes &attributes); 141 void setProperties(const QXmlAttributes &attributes);
142 142
143 void setLayerDormant(); 143 virtual void setLayerDormant(bool dormant);
144 144
145 protected slots: 145 protected slots:
146 void cacheInvalid(); 146 void cacheInvalid();
147 void cacheInvalid(size_t startFrame, size_t endFrame); 147 void cacheInvalid(size_t startFrame, size_t endFrame);
148 148
220 220
221 CacheFillThread *m_fillThread; 221 CacheFillThread *m_fillThread;
222 QTimer *m_updateTimer; 222 QTimer *m_updateTimer;
223 size_t m_lastFillExtent; 223 size_t m_lastFillExtent;
224 bool m_cachedInitialVisibleArea; 224 bool m_cachedInitialVisibleArea;
225 mutable bool m_dormant;
226 bool m_exiting; 225 bool m_exiting;
227 226
228 void setCacheColourmap(); 227 void setCacheColourmap();
229 void rotateCacheColourmap(int distance); 228 void rotateCacheColourmap(int distance);
230 229