From 8fbf582b60b6267463e6a3dc289b52e49fdc2f83 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 12 Sep 2009 14:33:49 +0000 Subject: prepare for gapless playback support git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1207 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/mad/decoder_mad.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/plugins/Input/mad/decoder_mad.h') diff --git a/src/plugins/Input/mad/decoder_mad.h b/src/plugins/Input/mad/decoder_mad.h index 8e66ac0c4..86369b4d9 100644 --- a/src/plugins/Input/mad/decoder_mad.h +++ b/src/plugins/Input/mad/decoder_mad.h @@ -7,6 +7,7 @@ #ifndef DECODER_MAD_H #define DECODER_MAD_H +class QIODevice; class DecoderMAD; #include @@ -21,8 +22,7 @@ extern "C" class DecoderMAD : public Decoder { public: - DecoderMAD(QObject *parent = 0, DecoderFactory *d = 0, - QIODevice *i = 0, Output *o = 0); + DecoderMAD(QIODevice *i); virtual ~DecoderMAD(); // standard decoder API @@ -31,8 +31,8 @@ public: int bitrate(); private: - qint64 readAudio(char *data, qint64 size); - void seekAudio(qint64); + qint64 read(char *data, qint64 size); + void seek(qint64); // helper functions qint64 madOutput(char *data, qint64 size); @@ -47,6 +47,7 @@ private: uint m_bitrate; long m_freq, m_len; qint64 m_output_bytes, m_output_at; + QIODevice *m_input; // file input buffer char *m_input_buf; -- cgit v1.2.3-13-gbd6f