aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mad/decoder_mad.h
diff options
context:
space:
mode:
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;