From 2d0439faf537a922c88f8b3436b2d91eb9f70503 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 16 Sep 2016 08:13:14 +0000 Subject: added archive reader (first test implementation) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6727 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/archive/decoder_archive.h | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/plugins/Input/archive/decoder_archive.h (limited to 'src/plugins/Input/archive/decoder_archive.h') diff --git a/src/plugins/Input/archive/decoder_archive.h b/src/plugins/Input/archive/decoder_archive.h new file mode 100644 index 000000000..df88acf15 --- /dev/null +++ b/src/plugins/Input/archive/decoder_archive.h @@ -0,0 +1,30 @@ +#ifndef DECODERARCHIVE_H +#define DECODERARCHIVE_H + +#include +#include +#include + + +class DecoderArchive : public Decoder +{ +public: + DecoderArchive(const QString &url); + + virtual ~DecoderArchive(); + + bool initialize(); + qint64 totalTime() const; + void seek(qint64 time); + qint64 read(unsigned char *data, qint64 maxSize); + int bitrate() const; + +private: + QString m_url; + struct archive *m_archive; + Decoder *m_decoder; + QIODevice *m_input; + +}; + +#endif // DECODERARCHIVE_H -- cgit v1.2.3-13-gbd6f