diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-12-26 10:26:11 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-12-26 10:26:11 +0000 |
| commit | c3b05ebdc87be03e1cce5ccc5aa9398db3054f53 (patch) | |
| tree | 187bd56977c1318c99b906e48c3153c5fed34a7d /src/plugins/Ui/skinned/shadedvisual.h | |
| parent | 5c9ab872f2d8fbb3871e79216663e4c8213962a6 (diff) | |
| download | qmmp-c3b05ebdc87be03e1cce5ccc5aa9398db3054f53.tar.gz qmmp-c3b05ebdc87be03e1cce5ccc5aa9398db3054f53.tar.bz2 qmmp-c3b05ebdc87be03e1cce5ccc5aa9398db3054f53.zip | |
changed visual api, disabled broken plugins
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5885 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/shadedvisual.h')
| -rw-r--r-- | src/plugins/Ui/skinned/shadedvisual.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/plugins/Ui/skinned/shadedvisual.h b/src/plugins/Ui/skinned/shadedvisual.h index 93ca5b217..0089139bc 100644 --- a/src/plugins/Ui/skinned/shadedvisual.h +++ b/src/plugins/Ui/skinned/shadedvisual.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007-2012 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 * @@ -27,7 +27,6 @@ class QTimer; class QPixmap; class Skin; -//class VisualNode; /** @author Ilya Kotov <forkotov02@hotmail.ru> @@ -40,7 +39,7 @@ public: ~ShadedVisual(); - void add(unsigned char *data, qint64 size, int chan); + void add(float *data, size_t samples, int chan); void clear(); void paintEvent (QPaintEvent *); @@ -54,13 +53,13 @@ private slots: void updateSkin(); private: - void process (short *l, short *r); + void process (float *l, float *r); void draw (QPainter *); Skin *m_skin; QTimer *m_timer; QPixmap m_pixmap; - short *m_left_buffer; - short *m_right_buffer; + float *m_left_buffer; + float *m_right_buffer; int m_buffer_at; double m_l, m_r; int m_ratio; |
