wer sich darunter nix vorstehlen kann,das wurde http://tuxbox-forum.dreambox-fan.de/for ... hlight=ost schonmal erklärt
Code: Alles auswählen
--- eavswitch.cpp.org 2005-07-16 15:58:26.000000000 +0200
+++ eavswitch.cpp 2007-01-09 15:43:11.000000000 +0100
@@ -67,9 +67,12 @@
saafd=open("/dev/dbox/saa0", O_RDWR);
system = vsPAL;
-
+#if HAVE_DVB_API_VERSION < 3
useOst =
eSystemInfo::getInstance()->getHwType() >= eSystemInfo::DM7000;
+#else
+ eConfig::getInstance()->getKey("/elitedvb/audio/ost", useOst);
+#endif
}
void eAVSwitch::init()
@@ -168,10 +171,16 @@
#else
audio_mixer_t mix;
#endif
+
+#if HAVE_DVB_API_VERSION < 3
mix.volume_left=(vol*vol)/64;
mix.volume_right=(vol*vol)/64;
-
+#else
+ mix.volume_left=255-vol;
+
+ mix.volume_right=255-vol;
+#endif
int fd = Decoder::getAudioDevice();
if ( fd == -1 )