aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/modplug/decoder_modplug.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-07-20 19:25:25 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-07-20 19:25:25 +0000
commitba1ead27be9789f63c1dce3f7ffc38ca38476b90 (patch)
treec6c01277ea62760977239b15224701e276bf5edb /src/plugins/Input/modplug/decoder_modplug.h
parent411a6c40f71b28328262a195935c5f94f3584d8e (diff)
downloadqmmp-ba1ead27be9789f63c1dce3f7ffc38ca38476b90.tar.gz
qmmp-ba1ead27be9789f63c1dce3f7ffc38ca38476b90.tar.bz2
qmmp-ba1ead27be9789f63c1dce3f7ffc38ca38476b90.zip
enabled modplug plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1054 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/modplug/decoder_modplug.h')
-rw-r--r--src/plugins/Input/modplug/decoder_modplug.h41
1 files changed, 11 insertions, 30 deletions
diff --git a/src/plugins/Input/modplug/decoder_modplug.h b/src/plugins/Input/modplug/decoder_modplug.h
index 8a14443b3..6d5a6dff7 100644
--- a/src/plugins/Input/modplug/decoder_modplug.h
+++ b/src/plugins/Input/modplug/decoder_modplug.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008 by Ilya Kotov *
+ * Copyright (C) 2008-2009 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -31,49 +31,30 @@ public:
DecoderModPlug(QObject *, DecoderFactory *, Output *, const QString &path);
virtual ~DecoderModPlug();
+ void readSettings();
+ static DecoderModPlug* instance();
// Standard Decoder API
bool initialize();
qint64 totalTime();
- void seek(qint64);
- void stop();
-
- void readSettings();
- static DecoderModPlug* instance();
+ int bitrate();
private:
- // thread run function
- void run();
-
- // helper functions
- void flush(bool = FALSE);
+ qint64 readAudio(char *audio, qint64 maxSize);
+ void seekAudio(qint64 time);
+ //helper function
void deinit();
- //ModPlug_Settings m_modSettings;
- //CSoundFile *m_modFile;
CSoundFile *m_soundFile;
- bool m_inited, m_user_stop;
int m_bps; //bits per sample
-
-
- //input buffer
- QByteArray m_input_buf;
-
- // output buffer
- char *m_output_buf;
- ulong m_output_bytes, m_output_at;
-
- unsigned int m_bks; //block size
- bool m_done, m_finish;
- long m_freq, m_bitrate;
- int m_chan, m_sampleSize;
- qint64 m_output_size;
- qint64 m_totalTime, m_seekTime;
+ QByteArray m_input_buf; //input buffer
+ quint32 m_freq;
+ int m_chan, m_sampleSize, m_bitrate;
+ qint64 m_totalTime;
double m_preampFactor;
bool m_usePreamp;
QString m_path;
static DecoderModPlug* m_instance;
};
-
#endif // DECODER_MODPLUG_H