summaryrefslogtreecommitdiff
path: root/audio.h
blob: 3287f7d3889b71bd18066cc662eaa2e8fefe363f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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