summaryrefslogtreecommitdiff
path: root/dxr3device.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2010-02-05 12:28:45 +0100
committerChristian Gmeiner <christian.gmeiner@gmail.com>2010-02-05 12:28:45 +0100
commita4b1634dd62a77d76d2dc67fd94ff6535e01f815 (patch)
tree0c1d64b6f26464c3c6dd32b620f301edf6f691aa /dxr3device.c
parentd523e5c0893d1936f6da0e1371e051263e5934de (diff)
downloadvdr-plugin-dxr3-a4b1634dd62a77d76d2dc67fd94ff6535e01f815.tar.gz
vdr-plugin-dxr3-a4b1634dd62a77d76d2dc67fd94ff6535e01f815.tar.bz2
make it possible to swich audio driver via command line opts
This makes it easier to test both audio drivers
Diffstat (limited to 'dxr3device.c')
-rw-r--r--dxr3device.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/dxr3device.c b/dxr3device.c
index d9a12e3..29ba21a 100644
--- a/dxr3device.c
+++ b/dxr3device.c
@@ -40,12 +40,13 @@ cDxr3Device::cDxr3Device() : pluginOn(true), vPts(0), scrSet(false), playCount(0
claimDevices();
- // TODO: this will be later the place,
- // where we will decide what kind of
- // audio output system we will use.
- audioOut = new cAudioOss();
- //audioOut = new cAudioAlsa();
- audioOut->openDevice();
+ if (cSettings::instance()->audioDriver() == OSS) {
+ isyslog("[dxr3-device] using oss audio driver");
+ audioOut = new cAudioOss();
+ } else {
+ isyslog("[dxr3-device] using alsa audio driver");
+ audioOut = new cAudioAlsa();
+ }
aDecoder = new cDxr3AudioDecoder();
}