summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'device.h')
-rw-r--r--device.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/device.h b/device.h
index 110c1d4b..ae5c94d2 100644
--- a/device.h
+++ b/device.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: device.h,v 1.3 2006-07-02 17:09:04 phintuka Exp $
+ * $Id: device.h,v 1.4 2006-07-21 22:45:22 phintuka Exp $
*
*/
@@ -138,12 +138,26 @@ class cXinelibDevice : public cDevice
#endif
virtual int PlaySpu(const uchar *Data, int Length, uchar Id);
-#if 0
+#if 1
// override cDevice to get DVD SPUs
- virtual int PlayPesPacket(const uchar *Data, int Length,
+ virtual int PlayPesPacket(const uchar *Data, int Length,
bool VideoOnly = false);
+
+ // -> cDevice
+ int m_DvdSpuTracks;
+ int m_CurrentDvdSpuTrack;
+ bool m_DvdSpuTrack[64];
+ void ClrAvailableDvdSpuTracks(void);
+ bool SetAvailableDvdSpuTrack(int Type);
+
+ public:
+ int NumDvdSpuTracks(void) const { return m_DvdSpuTracks; }
+ int GetCurrentDvdSpuTrack(void) { return m_CurrentDvdSpuTrack; }
+ bool SetCurrentDvdSpuTrack(int Type);
+ bool HasDvdSpuTrack(int Type) const;
#endif
+ protected:
ePlayMode playMode;
virtual bool SetPlayMode(ePlayMode PlayMode);