From 095abc2e238556b3b89f55a6c7885450e3e3385b Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 14 Sep 2009 10:38:21 +0000 Subject: enabled cue support git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1221 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/cue/decoder_cue.h | 46 ++++++------------------------------- 1 file changed, 7 insertions(+), 39 deletions(-) (limited to 'src/plugins/Input/cue/decoder_cue.h') 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 &metaData); - - void dispatch(const Qmmp::State &state); + qint64 offset_in_bytes; + qint64 m_totalBytes; + QString m_path; }; #endif // DECODER_CUE_H -- cgit v1.2.3-13-gbd6f