diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-09-14 10:38:21 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-09-14 10:38:21 +0000 |
| commit | 095abc2e238556b3b89f55a6c7885450e3e3385b (patch) | |
| tree | 6c2afff150a179e640d6579828a98108850a981a /src/plugins/Input/cue/decoder_cue.h | |
| parent | a21018491ad5f53521b63dba062e2d7e87efc1c5 (diff) | |
| download | qmmp-095abc2e238556b3b89f55a6c7885450e3e3385b.tar.gz qmmp-095abc2e238556b3b89f55a6c7885450e3e3385b.tar.bz2 qmmp-095abc2e238556b3b89f55a6c7885450e3e3385b.zip | |
enabled cue support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1221 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/cue/decoder_cue.h')
| -rw-r--r-- | src/plugins/Input/cue/decoder_cue.h | 46 |
1 files changed, 7 insertions, 39 deletions
diff --git a/src/plugins/Input/cue/decoder_cue.h b/src/plugins/Input/cue/decoder_cue.h index a02f82506..1f641574f 100644 --- a/src/plugins/Input/cue/decoder_cue.h +++ b/src/plugins/Input/cue/decoder_cue.h @@ -26,59 +26,27 @@ class Output; class QIDevice; -//class CUEStateHandler; class DecoderCUE : public Decoder { - Q_OBJECT public: - DecoderCUE(QObject *, DecoderFactory *, const QString &url); + DecoderCUE(const QString &url, QIODevice *input); virtual ~DecoderCUE(); // Standard Decoder API bool initialize(); qint64 totalTime(); void seek(qint64); - void stop(); - void pause(); + qint64 read(char *data, qint64 size); + int bitrate(); - // Equalizer - void setEQ(double bands[10], double preamp); - void setEQEnabled(bool on); - -private slots: - void proccessFinish(); - -private: - // thread run function - void run(); - QString path, m_nextUrl; +private: Decoder *m_decoder; - Output *m_output2; - QIODevice *m_input2; qint64 m_length; qint64 m_offset; - double m_preamp2; - double m_bands2[10]; - bool m_useEQ2; -}; - -class CUEStateHandler : public StateHandler -{ - Q_OBJECT -public: - CUEStateHandler(QObject *parent); - virtual ~CUEStateHandler(); - - void dispatch(qint64 elapsed, - int bitrate, - quint32 frequency, - int precision, - int channels); - - void dispatch(const QMap<Qmmp::MetaData, QString> &metaData); - - void dispatch(const Qmmp::State &state); + qint64 offset_in_bytes; + qint64 m_totalBytes; + QString m_path; }; #endif // DECODER_CUE_H |
