diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-09-22 22:02:48 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-09-22 22:02:48 +0000 |
| commit | e1c05b3f03704b42bfd093be3cdcd4d53d3e383b (patch) | |
| tree | ed97bf6ab1e6c1999b29f13db7c0aeba5b04a8ff /src/plugins/Input/wavpack/decoder_wavpack.h | |
| parent | 8dd8b452d8e8e8ef33be0421153d9026a432535a (diff) | |
| download | qmmp-e1c05b3f03704b42bfd093be3cdcd4d53d3e383b.tar.gz qmmp-e1c05b3f03704b42bfd093be3cdcd4d53d3e383b.tar.bz2 qmmp-e1c05b3f03704b42bfd093be3cdcd4d53d3e383b.zip | |
enabled wavpack plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1252 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/wavpack/decoder_wavpack.h')
| -rw-r--r-- | src/plugins/Input/wavpack/decoder_wavpack.h | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/src/plugins/Input/wavpack/decoder_wavpack.h b/src/plugins/Input/wavpack/decoder_wavpack.h index a6704abc2..dc8f6102b 100644 --- a/src/plugins/Input/wavpack/decoder_wavpack.h +++ b/src/plugins/Input/wavpack/decoder_wavpack.h @@ -30,33 +30,39 @@ class CUEParser; class DecoderWavPack : public Decoder { -Q_OBJECT public: - DecoderWavPack(QObject *, DecoderFactory *, Output *, const QString &); + DecoderWavPack(const QString &); virtual ~DecoderWavPack(); // Standard Decoder API bool initialize(); qint64 totalTime(); int bitrate(); - -private slots: - void processFinish(); + qint64 read(char *data, qint64 maxSize); + void seek(qint64 time); + const QString nextURL(); + void next(); private: - // Standard Decoder API - qint64 readAudio(char *data, qint64 maxSize); - void seekAudio(qint64 time); // helper functions void deinit(); - WavpackContext *m_context; - // output buffer - int32_t *m_output_buf; + qint64 wavpack_decode(char *data, qint64 size); + WavpackContext *m_context; + int32_t *m_output_buf; // output buffer int m_chan; quint32 m_freq; qint64 m_totalTime; - QString m_path, m_nextUrl; - CUEParser *m_cue_parser; + qint64 length_in_bytes; + qint64 m_totalBytes; + qint64 m_offset; + qint64 m_length; + QString m_path; + CUEParser *m_parser; + int m_track; + char *m_buf; //buffer for remainig data + qint64 m_buf_size; + qint64 m_sz; //sample size + }; #endif // DECODER_WAVPACK_H |
