diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-08-13 14:10:55 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-08-13 14:10:55 +0000 |
| commit | b5833f9423ecdc673f653dbb3f4bca6dacc918c1 (patch) | |
| tree | 3ab466ec064339c789fc6f43d15c085659621413 /src/plugins/Input/mad/decoder_mad.h | |
| parent | e16f15ff12eb654d2c09f5a280d28389a3ad74fc (diff) | |
| download | qmmp-b5833f9423ecdc673f653dbb3f4bca6dacc918c1.tar.gz qmmp-b5833f9423ecdc673f653dbb3f4bca6dacc918c1.tar.bz2 qmmp-b5833f9423ecdc673f653dbb3f4bca6dacc918c1.zip | |
imported 0.2 fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@495 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/mad/decoder_mad.h')
| -rw-r--r-- | src/plugins/Input/mad/decoder_mad.h | 49 |
1 files changed, 20 insertions, 29 deletions
diff --git a/src/plugins/Input/mad/decoder_mad.h b/src/plugins/Input/mad/decoder_mad.h index 313af2e0f..f37016657 100644 --- a/src/plugins/Input/mad/decoder_mad.h +++ b/src/plugins/Input/mad/decoder_mad.h @@ -12,7 +12,8 @@ class DecoderMAD; #include <qmmp/decoder.h> #include "decodermadfactory.h" -extern "C" { +extern "C" +{ #include <mad.h> } @@ -20,8 +21,8 @@ extern "C" { class DecoderMAD : public Decoder { public: - DecoderMAD(QObject *parent = 0, DecoderFactory *d = 0, - QIODevice *i = 0, Output *o = 0); + DecoderMAD(QObject *parent = 0, DecoderFactory *d = 0, + QIODevice *i = 0, Output *o = 0); virtual ~DecoderMAD(); // standard decoder API @@ -30,17 +31,6 @@ public: void seek(double); void stop(); - // Equalizer - //bool isEQSupported() const { return TRUE; } - //void setEQEnabled(bool); - //void setEQ(const EqPreset &); - - static const int maxDecodeRetries; - static const int maxFrameSize; - static const int maxFrameCheck; - static const int initialFrameSize; - - private: // thread run function void run(); @@ -53,12 +43,11 @@ private: void deinit(); bool findHeader(); bool findXingHeader(struct mad_bitptr, unsigned int); - void calcLength(struct mad_header *); - bool inited, user_stop, done, finish, derror, eof, useeq; double totalTime, seekTime; int channels; - long bitrate, freq, len; + unsigned long bitrate; + long freq, len; unsigned int bks; mad_fixed_t eqbands[32]; @@ -71,19 +60,21 @@ private: unsigned long output_bytes, output_at, output_size; // MAD decoder - struct { - int flags; - unsigned long frames; - unsigned long bytes; - unsigned char toc[100]; - long scale; + struct + { + int flags; + unsigned long frames; + unsigned long bytes; + unsigned char toc[100]; + long scale; } xing; - enum { - XING_FRAMES = 0x0001, - XING_BYTES = 0x0002, - XING_TOC = 0x0004, - XING_SCALE = 0x0008 + enum + { + XING_FRAMES = 0x0001, + XING_BYTES = 0x0002, + XING_TOC = 0x0004, + XING_SCALE = 0x0008 }; struct mad_stream stream; @@ -92,4 +83,4 @@ private: }; -#endif // __decoder_mad_h +#endif // DECODER_MAD_H |
