diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-05-28 15:10:08 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-05-28 15:10:08 +0200 |
commit | 9847c7571dc8f76301dcff7a6eff8075f2179b09 (patch) | |
tree | f4b1284beee812f96e5b11e51c253003877a977a /audio.c | |
parent | 43551831500e249b2dcb8557910ad234f46564cc (diff) | |
download | vdr-9847c7571dc8f76301dcff7a6eff8075f2179b09.tar.gz vdr-9847c7571dc8f76301dcff7a6eff8075f2179b09.tar.bz2 |
Removed all the compatibility '#if APIVERSNUM...' stuff and instead increased the API version number
Diffstat (limited to 'audio.c')
-rw-r--r-- | audio.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -4,17 +4,11 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: audio.c 1.4 2006/05/20 10:02:08 kls Exp $ + * $Id: audio.c 1.5 2006/05/28 15:03:24 kls Exp $ */ #include "audio.h" #include <stdlib.h> -// TODO remove the following if APIVERSNUM > 10400 -#include "config.h" -#if APIVERSNUM != 10400 -#warning ******* API version changed - remove old stuff -#endif -// TODO #include "dvbdevice.h" // --- cAudio ---------------------------------------------------------------- @@ -68,14 +62,7 @@ void cExternalAudio::Play(const uchar *Data, int Length, uchar Id) if (command && !mute) { if (pipe || pipe.Open(command, "w")) { if (0x80 <= Id && Id <= 0x87 || Id == 0xBD) { // AC3 -#if APIVERSNUM == 10400 - extern int cDvbDevice__setTransferModeForDolbyDigital; - cDvbDevice__setTransferModeForDolbyDigital = 2; - cDvbDevice::SetTransferModeForDolbyDigital(false); -#else -#warning ******* API version changed - remove old stuff cDvbDevice::SetTransferModeForDolbyDigital(2); -#endif int written = Data[8] + 9; // skips the PES header if (Id != 0xBD) written += 4; // skips AC3 bytes |