From ba1ead27be9789f63c1dce3f7ffc38ca38476b90 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 20 Jul 2009 19:25:25 +0000 Subject: enabled modplug plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1054 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/modplug/decoder_modplug.h | 41 ++++++++--------------------- 1 file changed, 11 insertions(+), 30 deletions(-) (limited to 'src/plugins/Input/modplug/decoder_modplug.h') 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 -- cgit v1.2.3-13-gbd6f