summaryrefslogtreecommitdiff
path: root/dvd.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2001-11-25 18:00:00 +0100
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2001-11-25 18:00:00 +0100
commitb420457467ad0c8ae71f8b985914e85b7a0ff5aa (patch)
tree6d5b949efc2de0e0a5b27272fa92581e133c7fe3 /dvd.h
parent6e1fd835558b4e70ad94a280a209f050ec0f7a75 (diff)
downloadvdr-patch-lnbsharing-b420457467ad0c8ae71f8b985914e85b7a0ff5aa.tar.gz
vdr-patch-lnbsharing-b420457467ad0c8ae71f8b985914e85b7a0ff5aa.tar.bz2
Version 0.99pre1vdr-0.99pre1
- Fixed several channel definitions in 'channels.conf' (thanks to Thilo Wunderlich). - Added MPEG audio support for DVD (thanks to Andreas Schultz). - Implemented DVB-T support (thanks to Dave Chapman). This currently works only for UK channels. - Removed the range limits for the Frequency and Srate parameters of channel definitions. - Changed the maximum value for PIDs in channels.conf from 0xFFFE to 0x1FFF. - Fixed DVD audio sync problems (thanks to Andreas Schultz). - Fixed external AC3 replay for DVDs (thanks to Andreas Schultz).
Diffstat (limited to 'dvd.h')
-rw-r--r--dvd.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/dvd.h b/dvd.h
index 68fc1d3..5ac1454 100644
--- a/dvd.h
+++ b/dvd.h
@@ -6,7 +6,7 @@
*
* Initially written by Andreas Schultz <aschultz@warp10.net>
*
- * $Id: dvd.h 1.3 2001/08/05 16:00:57 kls Exp $
+ * $Id: dvd.h 1.4 2001/11/10 13:38:25 kls Exp $
*/
#ifndef __DVD_H
@@ -21,6 +21,11 @@
#include <dvdread/nav_read.h>
#include <dvdread/nav_print.h>
+#define aAC3 0x80
+#define aDTS 0x88
+#define aLPCM 0xA0
+#define aMPEG 0xC0
+
class cDVD {
private:
static cDVD *dvdInstance;
@@ -44,8 +49,12 @@ public:
bool isValid(void) { return (dvd != NULL); }
ifo_handle_t *openVMG(void);
ifo_handle_t *openVTS(int TitleSet);
+ ifo_handle_t *getVTS() { return vts_file; }
dvd_file_t *openTitle(int Title, dvd_read_domain_t domain);
static cDVD *getDVD(void);
+ int getAudioNrOfTracks() { return getVTS() ? getVTS()->vtsi_mat->nr_of_vts_audio_streams : 0; }
+ int getAudioLanguage(int stream) { return getVTS() ? getVTS()->vtsi_mat->vts_audio_attr[stream].lang_code : 0; }
+ int getAudioTrack(int stream);
};
#endif //DVDSUPPORT