diff options
| author | woro <woro@e10066b5-e1e2-0310-b819-94efdf66514b> | 2008-04-11 20:11:00 +0000 |
|---|---|---|
| committer | woro <woro@e10066b5-e1e2-0310-b819-94efdf66514b> | 2008-04-11 20:11:00 +0000 |
| commit | 57d7ee812c8be1bd118471512682cb3393ce595f (patch) | |
| tree | 2e0d792fc74eda1661b439853c004e2ed5c06820 /vdr_decoder_mp3.h | |
| parent | b2550195d6b61f9be3470679082b8d6b5159aa83 (diff) | |
| download | vdr-plugin-muggle-57d7ee812c8be1bd118471512682cb3393ce595f.tar.gz vdr-plugin-muggle-57d7ee812c8be1bd118471512682cb3393ce595f.tar.bz2 | |
merge mp3ng branch into trunk
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@1173 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'vdr_decoder_mp3.h')
| -rw-r--r-- | vdr_decoder_mp3.h | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/vdr_decoder_mp3.h b/vdr_decoder_mp3.h index 0149031..23e0d4f 100644 --- a/vdr_decoder_mp3.h +++ b/vdr_decoder_mp3.h @@ -38,76 +38,76 @@ class mgStream; */ class mgMP3Decoder:public mgDecoder { - private: - struct mgDecode m_ds; + private: + struct mgDecode m_ds; -// - struct mad_stream m_madstream; - struct mad_frame *m_madframe; - struct mad_synth *m_madsynth; - mad_timer_t m_playtime, m_skiptime; + // + struct mad_stream m_madstream; + struct mad_frame *m_madframe; + struct mad_synth *m_madsynth; + mad_timer_t m_playtime, m_skiptime; -// - struct FrameInfo - { - unsigned long long Pos; - mad_timer_t Time; - } *m_frameinfo; + // + struct FrameInfo + { + unsigned long long Pos; + mad_timer_t Time; + } *m_frameinfo; - int m_framenum, m_framemax, m_errcount, m_mute; + int m_framenum, m_framemax, m_errcount, m_mute; - void init (); + void init (); - void clean (); + void clean (); - struct mgDecode *done (eDecodeStatus status); + struct mgDecode *done (eDecodeStatus status); - virtual mgPlayInfo *playInfo (); + virtual mgPlayInfo *playInfo (); - eDecodeStatus decodeError (bool hdr); + eDecodeStatus decodeError (bool hdr); - void makeSkipTime (mad_timer_t * skiptime, mad_timer_t playtime, - int secs, int avail, int dvbrate); + void makeSkipTime (mad_timer_t * skiptime, mad_timer_t playtime, + int secs, int avail, int dvbrate); - protected: - mgStream * m_stream; - bool m_isStream; + protected: + mgStream * m_stream; + bool m_isStream; - public: + public: -/*! - * \brief construct a decoder from a filename - */ - mgMP3Decoder (mgItemGd * item, bool preinit = true); + /*! + * \brief construct a decoder from a filename + */ + mgMP3Decoder (mgItemGd * item, bool preinit = true); -/*! - * \brief the destructor - */ - virtual ~ mgMP3Decoder (); + /*! + * \brief the destructor + */ + virtual ~ mgMP3Decoder (); -/*! - * \brief check, whether the file contains useable MP3 content - */ - virtual bool valid (); + /*! + * \brief check, whether the file contains useable MP3 content + */ + virtual bool valid (); -/*! - * \brief start the decoding process - */ - virtual bool start (); + /*! + * \brief start the decoding process + */ + virtual bool start (); -/*! - * \brief stop the decoding process - */ - virtual bool stop (); + /*! + * \brief stop the decoding process + */ + virtual bool stop (); -/*! - * \brief skip an amount of seconds - */ - virtual bool skip (int seconds, int avail, int rate); + /*! + * \brief skip an amount of seconds + */ + virtual bool skip (int seconds, int avail, int rate); -/*! - * \brief the actual decoding function (uses libmad) - */ - virtual struct mgDecode *decode (); + /*! + * \brief the actual decoding function (uses libmad) + */ + virtual struct mgDecode *decode (); }; -#endif //___DECODER_MP3_H +#endif //___DECODER_MP3_H |
