diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-07-20 18:02:12 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-07-20 18:02:12 +0000 |
| commit | 411a6c40f71b28328262a195935c5f94f3584d8e (patch) | |
| tree | d23f93901ae1a9618d316c4f439bc0dbbe552495 /src/plugins/Input/wavpack/decoder_wavpack.h | |
| parent | 136ed47dafbd60544add69a7f2d720b7929bd83e (diff) | |
| download | qmmp-411a6c40f71b28328262a195935c5f94f3584d8e.tar.gz qmmp-411a6c40f71b28328262a195935c5f94f3584d8e.tar.bz2 qmmp-411a6c40f71b28328262a195935c5f94f3584d8e.zip | |
enabled wavpack plugin, fixed problem with slow seeking
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1053 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 | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/src/plugins/Input/wavpack/decoder_wavpack.h b/src/plugins/Input/wavpack/decoder_wavpack.h index fe2a0a092..a6704abc2 100644 --- a/src/plugins/Input/wavpack/decoder_wavpack.h +++ b/src/plugins/Input/wavpack/decoder_wavpack.h @@ -24,12 +24,13 @@ extern "C"{ #include <wavpack/wavpack.h> } - #include <qmmp/decoder.h> +class CUEParser; class DecoderWavPack : public Decoder { +Q_OBJECT public: DecoderWavPack(QObject *, DecoderFactory *, Output *, const QString &); virtual ~DecoderWavPack(); @@ -37,33 +38,25 @@ public: // Standard Decoder API bool initialize(); qint64 totalTime(); - void seek(qint64); - void stop(); + int bitrate(); + +private slots: + void processFinish(); private: - // thread run function - void run(); - WavpackContext *m_context; + // Standard Decoder API + qint64 readAudio(char *data, qint64 maxSize); + void seekAudio(qint64 time); // helper functions - void flush(bool = FALSE); void deinit(); - - bool m_inited, m_user_stop; - int m_bps; //bits per sample - + WavpackContext *m_context; // output buffer - char *m_output_buf; - qint64 m_output_bytes, m_output_at; - - unsigned int m_bks; //block size - bool m_done, m_finish; - long m_freq, m_bitrate; + int32_t *m_output_buf; int m_chan; - qint64 m_output_size; - qint64 m_totalTime, m_seekTime; - QString m_path; - qint64 m_offset; - qint64 m_length; + quint32 m_freq; + qint64 m_totalTime; + QString m_path, m_nextUrl; + CUEParser *m_cue_parser; }; #endif // DECODER_WAVPACK_H |
