summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-09-04 14:48:39 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-09-04 14:48:39 +0200
commit1bc5ba817c785f6d99ab5e82a9b5f5be3238dd1c (patch)
treea323b5038b0265edfad42422a8d8534895bc1496 /channels.h
parentc4ff05bbcaf8dd31ac88bdc76f2815da25ac08b0 (diff)
downloadvdr-1bc5ba817c785f6d99ab5e82a9b5f5be3238dd1c.tar.gz
vdr-1bc5ba817c785f6d99ab5e82a9b5f5be3238dd1c.tar.bz2
Changed the audio PID language codes to hold up to two 3 letter codes; automatic audio channel setting for two channel audio
Diffstat (limited to 'channels.h')
-rw-r--r--channels.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/channels.h b/channels.h
index 53720424..2742e350 100644
--- a/channels.h
+++ b/channels.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.h 1.33 2005/08/06 11:23:32 kls Exp $
+ * $Id: channels.h 1.34 2005/09/04 10:17:12 kls Exp $
*/
#ifndef __CHANNELS_H
@@ -36,6 +36,9 @@
#define MAXSPIDS 8 // subtitles
#define MAXCAIDS 8 // conditional access
+#define MAXLANGCODE1 4 // a 3 letter language code, zero terminated
+#define MAXLANGCODE2 8 // up to two 3 letter language codes, separated by '+' and zero terminated
+
struct tChannelParameterMap {
int userValue;
int driverValue;
@@ -102,11 +105,11 @@ private:
int vpid;
int ppid;
int apids[MAXAPIDS + 1]; // list is zero-terminated
- char alangs[MAXAPIDS][4];
+ char alangs[MAXAPIDS][MAXLANGCODE2];
int dpids[MAXDPIDS + 1]; // list is zero-terminated
- char dlangs[MAXDPIDS][4];
+ char dlangs[MAXDPIDS][MAXLANGCODE2];
int spids[MAXSPIDS + 1]; // list is zero-terminated
- char slangs[MAXSPIDS][4];
+ char slangs[MAXSPIDS][MAXLANGCODE2];
int tpid;
int caids[MAXCAIDS + 1]; // list is zero-terminated
int nid;
@@ -188,7 +191,7 @@ public:
void SetId(int Nid, int Tid, int Sid, int Rid = 0);
void SetName(const char *Name, const char *ShortName, const char *Provider);
void SetPortalName(const char *PortalName);
- void SetPids(int Vpid, int Ppid, int *Apids, char ALangs[][4], int *Dpids, char DLangs[][4], int Tpid);
+ void SetPids(int Vpid, int Ppid, int *Apids, char ALangs[][MAXLANGCODE2], int *Dpids, char DLangs[][MAXLANGCODE2], int Tpid);
void SetCaIds(const int *CaIds); // list must be zero-terminated
void SetCaDescriptors(int Level);
void SetLinkChannels(cLinkChannels *LinkChannels);