X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Ffft_result.h;h=ddf2bb18424fdd04568b4b817960dbb013685fde;hb=38c10a4d2367111f3b9c7ac2223a8b633bfeb147;hp=c6c952db1c348ae19740c7000cc0cf173915a6f8;hpb=997e4b1f9cd7ccfc704b7c035051da7f60d831e7;p=ardour.git diff --git a/gtk2_ardour/fft_result.h b/gtk2_ardour/fft_result.h index c6c952db1c..ddf2bb1842 100644 --- a/gtk2_ardour/fft_result.h +++ b/gtk2_ardour/fft_result.h @@ -21,7 +21,6 @@ #ifndef __ardour_fft_result_h #define __ardour_fft_result_h -#include #include #include @@ -33,26 +32,26 @@ class FFTGraph; class FFTResult { public: - + ~FFTResult(); void analyzeWindow(float *window); void finalize(); - const int length() { return _dataSize; } + int length() const { return _dataSize; } float avgAt(int x); float maxAt(int x); float minAt(int x); - - const float minimum() { return _minimum; } - const float maximum() { return _maximum; } - - const Gdk::Color get_color() { return _color; } - + + float minimum() const { return _minimum; } + float maximum() const { return _maximum; } + + Gdk::Color get_color() const { return _color; } + private: FFTResult(FFTGraph *graph, Gdk::Color color, std::string trackname); - + int _averages; float* _data_avg; @@ -68,10 +67,10 @@ class FFTResult float _maximum; FFTGraph *_graph; - + Gdk::Color _color; std::string _trackname; - + friend class FFTGraph; };