diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-01-17 06:32:42 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-01-17 06:32:42 +0000 |
| commit | 740b179d7565ca0f846817d4abc6fee8fb8ca7cc (patch) | |
| tree | a930dc1b66479bad3efa99900836b3db6e078523 /src/plugins/Visual/analyzer/analyzer.h | |
| parent | 240d991e41a3bb874d5289456215e67d23856361 (diff) | |
| download | qmmp-740b179d7565ca0f846817d4abc6fee8fb8ca7cc.tar.gz qmmp-740b179d7565ca0f846817d4abc6fee8fb8ca7cc.tar.bz2 qmmp-740b179d7565ca0f846817d4abc6fee8fb8ca7cc.zip | |
removed old visual api usage
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6986 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Visual/analyzer/analyzer.h')
| -rw-r--r-- | src/plugins/Visual/analyzer/analyzer.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/plugins/Visual/analyzer/analyzer.h b/src/plugins/Visual/analyzer/analyzer.h index d2c2d6cd1..b6c93e39b 100644 --- a/src/plugins/Visual/analyzer/analyzer.h +++ b/src/plugins/Visual/analyzer/analyzer.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007-2015 by Ilya Kotov * + * Copyright (C) 2007-2017 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -32,7 +32,6 @@ class QPaintEvent; class QHideEvent; class QShowEvent; - class Analyzer : public Visual { Q_OBJECT @@ -41,9 +40,9 @@ public: Analyzer( QWidget *parent = 0); virtual ~Analyzer(); - void add(float *data, size_t samples, int chan); - void clear(); - +public slots: + void start(); + void stop(); private slots: void timeout(); @@ -51,14 +50,14 @@ private slots: void readSettings(); void writeSettings(); - private: + void clear(); virtual void hideEvent (QHideEvent *); virtual void showEvent (QShowEvent *); virtual void closeEvent (QCloseEvent *); void paintEvent(QPaintEvent *); void mousePressEvent(QMouseEvent *e); - void process(float *l, float *r); + void process(); void draw(QPainter *p); void createMenu(); QTimer *m_timer; @@ -70,9 +69,9 @@ private: bool m_show_peaks; float *m_left_buffer; float *m_right_buffer; - int m_buffer_at; int m_cols, m_rows; bool m_update; + bool m_running; //colors QColor m_color1; QColor m_color2; |
