aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mad/decoder_mad.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-09-12 14:33:49 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-09-12 14:33:49 +0000
commit8fbf582b60b6267463e6a3dc289b52e49fdc2f83 (patch)
tree9540a7b90f2b52ccb34104f2f89d4c1e22445a70 /src/plugins/Input/mad/decoder_mad.h
parentc89ba4ee3ccca9a2f4b38d4b76ca666f94babbd4 (diff)
downloadqmmp-8fbf582b60b6267463e6a3dc289b52e49fdc2f83.tar.gz
qmmp-8fbf582b60b6267463e6a3dc289b52e49fdc2f83.tar.bz2
qmmp-8fbf582b60b6267463e6a3dc289b52e49fdc2f83.zip
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
Diffstat (limited to 'src/plugins/Input/mad/decoder_mad.h')
-rw-r--r--src/plugins/Input/mad/decoder_mad.h9
1 files changed, 5 insertions, 4 deletions
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 <qmmp/decoder.h>
@@ -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;