summaryrefslogtreecommitdiff
path: root/dvbdevice.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-05-20 10:17:44 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-05-20 10:17:44 +0200
commita512b9a9fa24250ac16316916c5b015a15666b33 (patch)
tree8d6fea0adb2b615c6ebf72a54f5004daef7f2f63 /dvbdevice.h
parentc8c22ad49b0501f9e3c35ee79bc8bf94e05eba66 (diff)
downloadvdr-a512b9a9fa24250ac16316916c5b015a15666b33.tar.gz
vdr-a512b9a9fa24250ac16316916c5b015a15666b33.tar.bz2
Fixed handling Transfer Mode when replaying Dolby Digital audio and the option '-a' was given
Diffstat (limited to 'dvbdevice.h')
-rw-r--r--dvbdevice.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/dvbdevice.h b/dvbdevice.h
index 6f2078ab..1031c83d 100644
--- a/dvbdevice.h
+++ b/dvbdevice.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.h 1.39 2006/04/01 14:18:59 kls Exp $
+ * $Id: dvbdevice.h 1.40 2006/05/20 09:32:06 kls Exp $
*/
#ifndef __DVBDEVICE_H
@@ -104,14 +104,24 @@ protected:
private:
bool digitalAudio;
- static bool setTransferModeForDolbyDigital;
+ static int setTransferModeForDolbyDigital;
protected:
virtual int GetAudioChannelDevice(void);
virtual void SetAudioChannelDevice(int AudioChannel);
virtual void SetVolumeDevice(int Volume);
virtual void SetDigitalAudioDevice(bool On);
public:
+#if APIVERSNUM == 10400
static void SetTransferModeForDolbyDigital(bool On);
+#else
+#warning ******* API version changed - remove old stuff
+ static void SetTransferModeForDolbyDigital(int Mode);
+ ///< Controls how the DVB device handles Transfer Mode when replaying
+ ///< Dolby Digital audio.
+ ///< 0 = don't set "audio bypass" in driver/firmware, don't force Transfer Mode
+ ///< 1 = set "audio bypass" in driver/firmware, force Transfer Mode (default)
+ ///< 2 = don't set "audio bypass" in driver/firmware, force Transfer Mode
+#endif
// Player facilities