diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-03-30 18:49:58 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-03-30 18:49:58 +0200 |
commit | 74cdd9ffa1d0e5f74942051e7e22e07542929c03 (patch) | |
tree | e59472547b1ed3543b8e2d1d0e2a7c52fcb24c04 /command/audio.h | |
parent | 6446f24dce1b30fa341b7de078ca4385d1378457 (diff) | |
download | vdr-plugin-markad-74cdd9ffa1d0e5f74942051e7e22e07542929c03.tar.gz vdr-plugin-markad-74cdd9ffa1d0e5f74942051e7e22e07542929c03.tar.bz2 |
Changed directory structure, added Makefiles
Diffstat (limited to 'command/audio.h')
-rw-r--r-- | command/audio.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/command/audio.h b/command/audio.h new file mode 100644 index 0000000..8995732 --- /dev/null +++ b/command/audio.h @@ -0,0 +1,59 @@ +/* + * audio.h: A program for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + * + */ + +#ifndef __audio_h_ +#define __audio_h_ + +#include <netinet/in.h> // for htonl +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#include "global.h" + +extern "C" +{ +#include "debug.h" +} + +#if 0 +#include "audio_gain_analysis.h" +#endif + +class cMarkAdAudio +{ +private: + int lastiframe; + MarkAdContext *macontext; + + MarkAdMark mark; + void ResetMark(); + bool AddMark(int Type, int Position, const char *Comment); + +#define CUT_VAL 10 +#define MIN_LOWVALS 3 + bool SilenceDetection(); + int lastiframe_silence; + +#if 0 +#define ANALYZEFRAMES 1 + int lastiframe_gain; + double lastgain; + cMarkAdAudioGainAnalysis audiogain; + bool AnalyzeGain(); +#endif + + int channels; + bool ChannelChange(int a, int b); +public: + cMarkAdAudio(MarkAdContext *maContext); + ~cMarkAdAudio(); + MarkAdMark *Process(int LastIFrame); +}; + + +#endif |