aboutsummaryrefslogtreecommitdiff
path: root/src/ui/mainvisual.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-01-16 15:33:17 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-01-16 15:33:17 +0000
commit435f1da1de18bafe57e43e47fd8a6fc69fd8bab7 (patch)
treee332293971b3b3883685b79c62bcd50bf2f49c12 /src/ui/mainvisual.h
parent2fa169a585994ceb40db55405f46783d06820947 (diff)
downloadqmmp-435f1da1de18bafe57e43e47fd8a6fc69fd8bab7.tar.gz
qmmp-435f1da1de18bafe57e43e47fd8a6fc69fd8bab7.tar.bz2
qmmp-435f1da1de18bafe57e43e47fd8a6fc69fd8bab7.zip
updated audio engine
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1503 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/mainvisual.h')
-rw-r--r--src/ui/mainvisual.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ui/mainvisual.h b/src/ui/mainvisual.h
index 02fbc7fba..30fcd67ab 100644
--- a/src/ui/mainvisual.h
+++ b/src/ui/mainvisual.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2007-2009 by Ilya Kotov *
+ * Copyright (C) 2007-2010 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -34,8 +34,8 @@ class Buffer;
class VisualNode
{
public:
- VisualNode(short *l, short *r, unsigned long n, unsigned long o)
- : left(l), right(r), length(n), offset(o)
+ VisualNode(short *l, short *r, unsigned long n)
+ : left(l), right(r), length(n)
{
// left and right are allocated and then passed to this class
// the code that allocated left and right should give up all ownership
@@ -48,7 +48,7 @@ public:
}
short *left, *right;
- long length, offset;
+ long length;
};
class VisualBase
@@ -73,7 +73,7 @@ public:
static MainVisual *instance();
void setVisual(VisualBase *newvis);
- void add(Buffer *, unsigned long, int, int);
+ void add(unsigned char *data, qint64 size, int chan);
void clear();
void paintEvent(QPaintEvent *);
@@ -111,6 +111,8 @@ private:
QActionGroup *m_analyzerTypeGroup;
QAction *m_peaksAction;
QAction *m_transparentAction;
+ unsigned char m_buf[2048];
+ int m_buf_at;
int m_ratio;
};