diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-12-27 11:32:16 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-12-27 11:32:16 +0000 |
| commit | 8150882845f1eb089a0cba6fecd25c7bdc3c9540 (patch) | |
| tree | 6e73cf953a0b7272e9b2a9968edde8764e757db3 /src/plugins/Visual/analyzer/analyzer.h | |
| parent | b5dc393952c84dbd53c60afb8d367ad99bbd16ca (diff) | |
| download | qmmp-8150882845f1eb089a0cba6fecd25c7bdc3c9540.tar.gz qmmp-8150882845f1eb089a0cba6fecd25c7bdc3c9540.tar.bz2 qmmp-8150882845f1eb089a0cba6fecd25c7bdc3c9540.zip | |
ported analyzer plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5902 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Visual/analyzer/analyzer.h')
| -rw-r--r-- | src/plugins/Visual/analyzer/analyzer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/Visual/analyzer/analyzer.h b/src/plugins/Visual/analyzer/analyzer.h index 7de645ef5..d2c2d6cd1 100644 --- a/src/plugins/Visual/analyzer/analyzer.h +++ b/src/plugins/Visual/analyzer/analyzer.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007-2013 by Ilya Kotov * + * Copyright (C) 2007-2015 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -41,7 +41,7 @@ public: Analyzer( QWidget *parent = 0); virtual ~Analyzer(); - void add(unsigned char *data, qint64 size, int chan); + void add(float *data, size_t samples, int chan); void clear(); @@ -58,7 +58,7 @@ private: virtual void closeEvent (QCloseEvent *); void paintEvent(QPaintEvent *); void mousePressEvent(QMouseEvent *e); - void process(short *l, short *r); + void process(float *l, float *r); void draw(QPainter *p); void createMenu(); QTimer *m_timer; @@ -68,8 +68,8 @@ private: double m_peaks_falloff; double m_analyzer_falloff; bool m_show_peaks; - short *m_left_buffer; - short *m_right_buffer; + float *m_left_buffer; + float *m_right_buffer; int m_buffer_at; int m_cols, m_rows; bool m_update; |
