diff options
Diffstat (limited to 'src/mdaSpecMeterGUI.h')
-rw-r--r-- | src/mdaSpecMeterGUI.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/mdaSpecMeterGUI.h b/src/mdaSpecMeterGUI.h new file mode 100644 index 0000000..b4541f1 --- /dev/null +++ b/src/mdaSpecMeterGUI.h @@ -0,0 +1,45 @@ +#ifndef _mdaSpecMeterGUI_h_
+#define _mdaSpecMeterGUI_h_
+
+#include "lvzgui.h"
+
+
+//a drawing control
+class CDraw : public CControl
+{
+public:
+ CDraw(CRect &size, float x, CBitmap *background);
+ ~CDraw();
+
+ void draw(CDrawContext *pContext);
+ long x2pix(float x);
+ long x22pix(float x);
+
+ float Lpeak, Lrms, Lmin, Rpeak, Rrms, Rmin, Corr;
+ float band[2][16];
+ long temp;
+
+protected:
+ CBitmap *bitmap;
+};
+
+
+class mdaSpecMeterGUI : public AEffGUIEditor
+{
+public:
+ mdaSpecMeterGUI(AudioEffect *effect);
+ ~mdaSpecMeterGUI();
+
+ bool open(void *ptr);
+ void idle();
+ void close();
+
+private:
+ CDraw *draw;
+ CBitmap *background;
+ long xtimer;
+};
+
+
+#endif //_mdaSpecMeterGUI_h_
+
|