aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mpc/decoder_mpc.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-07-10 19:00:19 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-07-10 19:00:19 +0000
commit0ffc657cc8ef4ae47649f941690e9bfea2f8650f (patch)
treebf4d458699745106bc7593c307f2b9b2c4f1966a /src/plugins/Input/mpc/decoder_mpc.h
parentecac2692da3607ad2287d20c4d5003434413eac0 (diff)
downloadqmmp-0ffc657cc8ef4ae47649f941690e9bfea2f8650f.tar.gz
qmmp-0ffc657cc8ef4ae47649f941690e9bfea2f8650f.tar.bz2
qmmp-0ffc657cc8ef4ae47649f941690e9bfea2f8650f.zip
ported musepack plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1020 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/mpc/decoder_mpc.h')
-rw-r--r--src/plugins/Input/mpc/decoder_mpc.h34
1 files changed, 10 insertions, 24 deletions
diff --git a/src/plugins/Input/mpc/decoder_mpc.h b/src/plugins/Input/mpc/decoder_mpc.h
index fccc74610..b4e148706 100644
--- a/src/plugins/Input/mpc/decoder_mpc.h
+++ b/src/plugins/Input/mpc/decoder_mpc.h
@@ -46,38 +46,24 @@ public:
DecoderMPC(QObject *, DecoderFactory *, QIODevice *, Output *);
virtual ~DecoderMPC();
- // Standard Decoder API
- bool initialize();
- qint64 totalTime();
- void seek(qint64);
- void stop();
-
struct mpc_data *data()
{
return m_data;
}
+ // Standard Decoder API
+ bool initialize();
+ qint64 totalTime();
+ int bitrate();
private:
- // thread run function
- void run();
- struct mpc_data *m_data;
- // helper functions
- void flush(bool = FALSE);
- void deinit();
-
- bool inited, user_stop;
+ virtual qint64 readAudio(char *audio, qint64 maxSize);
+ void seekAudio(qint64 time);
- // output buffer
- char *output_buf;
- ulong output_bytes, output_at;
-
- unsigned int bks;
- bool done, m_finish;
- long len, freq, bitrate;
- int chan;
- qint64 output_size;
- qint64 m_totalTime, seekTime;
+ struct mpc_data *m_data;
+ long m_len;
+ int m_bitrate;
+ qint64 m_totalTime;
};