]> git.vomp.tv Git - vompclient.git/blob - playerlive.h
Display channel name, duration, resume point and size on recording info screen
[vompclient.git] / playerlive.h
1 /*
2     Copyright 2004-2005 Chris Tallon
3
4     This file is part of VOMP.
5
6     VOMP is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     VOMP is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with VOMP; if not, write to the Free Software
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19 */
20
21 #ifndef PLAYERLIVE_H
22 #define PLAYERLIVE_H
23
24 #include "defines.h"
25
26 struct StreamChunk
27 {
28   void* data;
29   ULONG len;
30 };
31
32 struct PLInstruction
33 {
34   UCHAR instruction;
35   ULONG channelIndex;
36 };
37
38 class PlayerLive
39 {
40   public:
41     virtual ~PlayerLive() {}
42
43     virtual int init()=0;
44     virtual int shutdown()=0;
45
46     virtual void go(ULONG index)=0;
47     virtual void setChannel(ULONG index)=0;
48     virtual void stop()=0;
49     virtual void setAudioChannel(int newChannel,int type,int streamtype)=0;
50     virtual void setSubtitleChannel(int newChannel)=0;
51
52     virtual bool* getDemuxerMpegAudioChannels()=0;
53     virtual bool* getDemuxerAc3AudioChannels()=0;
54     virtual int getCurrentAudioChannel()=0;
55     virtual int getCurrentSubtitleChannel()=0;
56     virtual int *getTeletxtSubtitlePages()=0;
57 };
58
59 #endif
60