aboutsummaryrefslogtreecommitdiff
path: root/lib/decoder.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2007-11-27 19:10:13 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2007-11-27 19:10:13 +0000
commit2a9a78ddd34ac86dad084dc1102320645963df1c (patch)
treee4d2250b04357ffd7b0c8f324c7ca09ea7014277 /lib/decoder.h
parent10923b3e9f495e70a23d4dcbc3c891b7517e667f (diff)
downloadqmmp-2a9a78ddd34ac86dad084dc1102320645963df1c.tar.gz
qmmp-2a9a78ddd34ac86dad084dc1102320645963df1c.tar.bz2
qmmp-2a9a78ddd34ac86dad084dc1102320645963df1c.zip
fixed seeking; added effect plugin support; added sample rate converter plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@190 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'lib/decoder.h')
-rw-r--r--lib/decoder.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/decoder.h b/lib/decoder.h
index de1e2d00a..97a3e1da6 100644
--- a/lib/decoder.h
+++ b/lib/decoder.h
@@ -14,7 +14,6 @@
#include <QObject>
#include <QStringList>
-
#include "filetag.h"
class QObject;
@@ -26,6 +25,7 @@ class Buffer;
class Recycler;
class Output;
class Visualization;
+class Effect;
@@ -47,7 +47,7 @@ public:
DecoderState(Type t)
: m_type(t), m_error_msg(0), m_tag(0)
- {}
+{}
DecoderState(const QString &e)
: m_type(Error), m_tag(0)
@@ -119,7 +119,7 @@ public:
}
Output *output()
{
- return out;
+ return m_output;
}
QMutex *mutex()
@@ -165,6 +165,7 @@ signals:
void stateChanged(const DecoderState&);
protected:
+ void configure(long freq, int channels, int prec, int bitrate);
void dispatch(DecoderState::Type);
void dispatch(const DecoderState&);
void dispatch(const FileTag&);
@@ -173,9 +174,9 @@ protected:
private:
DecoderFactory *fctry;
- QList<QObject*> listeners;
+ QList <Effect*> m_effects;
QIODevice *in;
- Output *out;
+ Output *m_output;
QMutex mtx;
QWaitCondition cnd;
@@ -183,6 +184,7 @@ private:
uint blksize;
bool m_eqInited;
bool m_useEQ;
+
};
#endif // DECODER_H