diff layer/SpectrogramLayer.h @ 491:c74e511a3c96

* Fix overall mag range management in normalise-visible-area mode
author Chris Cannam
date Mon, 09 Feb 2009 12:56:16 +0000
parents aa477ddcadb5
children 4c484636d5ec
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h	Fri Feb 06 15:06:23 2009 +0000
+++ b/layer/SpectrogramLayer.h	Mon Feb 09 12:56:16 2009 +0000
@@ -426,21 +426,18 @@
     bool updateViewMagnitudes(View *v) const;
     bool paintDrawBuffer(View *v, int w, int h,
                          int *binforx, float *binfory,
-                         bool usePeaksCache) const;
+                         bool usePeaksCache,
+                         MagnitudeRange &overallMag,
+                         bool &overallMagChanged) const;
     bool paintDrawBufferPeakFrequencies(View *v, int w, int h,
                                         int *binforx,
                                         int minbin,
                                         int maxbin,
                                         float displayMinFreq,
                                         float displayMaxFreq,
-                                        bool logarithmic) const;
-    //!!! phasing this one out:
-    bool paintColumnValues(View *v, FFTModel *fft, int x0, int x,
-                           int minbin, int maxbin,
-                           float displayMinFreq, float displayMaxFreq,
-                           float xPixelRatio,
-                           const int h,
-                           const float *yforbin) const;
+                                        bool logarithmic,
+                                        MagnitudeRange &overallMag,
+                                        bool &overallMagChanged) const;
 
     virtual void updateMeasureRectYCoords(View *v, const MeasureRect &r) const;
     virtual void setMeasureRectYCoord(View *v, MeasureRect &r, bool start, int y) const;