From 0ffc657cc8ef4ae47649f941690e9bfea2f8650f Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 10 Jul 2009 19:00:19 +0000 Subject: ported musepack plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1020 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/mpc/decoder_mpc.h | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) (limited to 'src/plugins/Input/mpc/decoder_mpc.h') 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; }; -- cgit v1.2.3-13-gbd6f