summaryrefslogtreecommitdiff
path: root/command/audio.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-05-25 19:23:47 +0200
committerJochen Dolze <vdr@dolze.de>2010-05-25 19:23:47 +0200
commit4c668726b7de321f0411064dcb286ed6ad05a307 (patch)
tree4c7556b13b9042e3b4f3478d1a0dbc56f4392193 /command/audio.cpp
parentbfdd9d54165fc1d9897d71d8b9c94c32291e882c (diff)
downloadvdr-plugin-markad-4c668726b7de321f0411064dcb286ed6ad05a307.tar.gz
vdr-plugin-markad-4c668726b7de321f0411064dcb286ed6ad05a307.tar.bz2
Added Clear()-function to demuxer,paket classes
Added marks DelAll, DelTill functions
Diffstat (limited to 'command/audio.cpp')
-rw-r--r--command/audio.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/command/audio.cpp b/command/audio.cpp
index bd35ddc..3882de2 100644
--- a/command/audio.cpp
+++ b/command/audio.cpp
@@ -14,11 +14,7 @@ cMarkAdAudio::cMarkAdAudio(MarkAdContext *maContext)
mark.Comment=NULL;
mark.Position=0;
mark.Type=0;
- channels=0;
-#if 0
- lastiframe_gain=-ANALYZEFRAMES;
-#endif
- lastiframe_silence=-1;
+ Clear();
}
cMarkAdAudio::~cMarkAdAudio()
@@ -131,6 +127,15 @@ bool cMarkAdAudio::AnalyzeGain()
}
#endif
+void cMarkAdAudio::Clear()
+{
+ channels=0;
+#if 0
+ lastiframe_gain=-ANALYZEFRAMES;
+#endif
+ lastiframe_silence=-1;
+}
+
bool cMarkAdAudio::ChannelChange(int a, int b)
{
if ((a==0) || (b==0)) return false;