summaryrefslogtreecommitdiff
path: root/muggle-plugin/vdr_decoder_ogg.h
diff options
context:
space:
mode:
authorLarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b>2005-03-22 06:47:53 +0000
committerLarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b>2005-03-22 06:47:53 +0000
commite2de0c5ed7bbbe4b236246e8bfd71cc87c8d974f (patch)
tree616f2f0a482597e3968e281ccf8adcfd04f45bbc /muggle-plugin/vdr_decoder_ogg.h
parent101360901576c7e91196de60e2e6ebd6a4b145dd (diff)
downloadvdr-plugin-muggle-0.1.6-BETA.tar.gz
vdr-plugin-muggle-0.1.6-BETA.tar.bz2
Added 0.1.6 beta tag0.1.6-BETA
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/tags/0.1.6-BETA@586 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'muggle-plugin/vdr_decoder_ogg.h')
-rw-r--r--muggle-plugin/vdr_decoder_ogg.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/muggle-plugin/vdr_decoder_ogg.h b/muggle-plugin/vdr_decoder_ogg.h
new file mode 100644
index 0000000..1f5fcfc
--- /dev/null
+++ b/muggle-plugin/vdr_decoder_ogg.h
@@ -0,0 +1,63 @@
+/*! \file vdr_decoder_ogg.h
+ * \ingroup vdr
+ *
+ * The file contains a decoder which is used by the player to decode ogg vorbis audio files.
+ *
+ * Adapted from
+ * MP3/MPlayer plugin to VDR (C++)
+ * (C) 2001-2003 Stefan Huelswitt <huels@iname.com>
+ */
+
+#ifndef ___DECODER_OGG_H
+#define ___DECODER_OGG_H
+
+#define DEC_OGG DEC_ID('O','G','G',' ')
+#define DEC_OGG_STR "OGG"
+
+#ifdef HAVE_VORBISFILE
+
+#include "vdr_decoder.h"
+
+// ----------------------------------------------------------------
+
+class mgOggFile;
+
+/*!
+ * \brief A decoder for Ogg Vorbis files
+ *
+ */
+class mgOggDecoder:public mgDecoder
+{
+ private:
+
+ mgOggFile * m_file;
+ struct mgDecode m_ds;
+ struct mad_pcm *m_pcm;
+ unsigned long long m_index;
+
+//
+ void init (void);
+ bool clean (void);
+ struct mgDecode *done (eDecodeStatus status);
+
+ public:
+
+ mgOggDecoder (mgContentItem * item);
+ ~mgOggDecoder ();
+
+ virtual mgPlayInfo *playInfo ();
+
+ virtual bool valid ();
+
+ virtual bool start ();
+
+ virtual bool stop ();
+
+ virtual bool skip (int Seconds, int Avail, int Rate);
+
+ virtual struct mgDecode *decode (void);
+};
+
+// ----------------------------------------------------------------
+#endif //HAVE_VORBISFILE
+#endif //___DECODER_OGG_H