summaryrefslogtreecommitdiff
path: root/audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio.h')
-rw-r--r--audio.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/audio.h b/audio.h
new file mode 100644
index 0000000..3287f7d
--- /dev/null
+++ b/audio.h
@@ -0,0 +1,38 @@
+/*
+ * audio.h: A plugin for the Video Disk Recorder
+ *
+ * See the README file for copyright information and how to reach the author.
+ *
+ * $Id$
+ */
+
+#ifndef __audio_h_
+#define __audio_h_
+
+#include <vdr/tools.h> // needed for (d/e/i)syslog
+#include "global.h"
+
+class cMarkAdAudio
+{
+private:
+ int lastiframe;
+ int recvnumber;
+ MarkAdContext *macontext;
+
+ MarkAdMark mark;
+ void ResetMark();
+ bool AddMark(int Position, const char *Comment);
+
+ int channels;
+
+private:
+ bool ChannelChange(int a, int b);
+
+public:
+ cMarkAdAudio(int RecvNumber,MarkAdContext *maContext);
+ ~cMarkAdAudio();
+ MarkAdMark *Process(int LastIFrame);
+};
+
+
+#endif