From a4b1634dd62a77d76d2dc67fd94ff6535e01f815 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 5 Feb 2010 12:28:45 +0100 Subject: make it possible to swich audio driver via command line opts This makes it easier to test both audio drivers --- dxr3device.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'dxr3device.c') 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(); } -- cgit v1.2.3