diff layer/SpectrumLayer.h @ 275:bbe57afe9d7d

* avoid trying to calculate fft from incomplete decoded audio file in spectrum
author Chris Cannam
date Mon, 02 Jul 2007 14:57:01 +0000
parents b9380f679f70
children 8acd30ed735c
line wrap: on
line diff
--- a/layer/SpectrumLayer.h	Mon Jul 02 13:04:17 2007 +0000
+++ b/layer/SpectrumLayer.h	Mon Jul 02 14:57:01 2007 +0000
@@ -44,6 +44,8 @@
 
     virtual QString getFeatureDescription(View *v, QPoint &) const;
 
+    virtual void paint(View *v, QPainter &paint, QRect rect) const;
+
     virtual PropertyList getProperties() const;
     virtual QString getPropertyLabel(const PropertyName &) const;
     virtual PropertyType getPropertyType(const PropertyName &) const;
@@ -100,6 +102,7 @@
     size_t                  m_windowSize;
     WindowType              m_windowType;
     size_t                  m_windowHopLevel;
+    mutable bool            m_newFFTNeeded;
 
     void setupFFT();