diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2010-03-06 16:40:29 +0100 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2010-03-06 16:40:29 +0100 |
commit | 3ebb171e520d0dce353cec489ca4b91bd74521b6 (patch) | |
tree | 64ac0bda8f6c3422d1a053e7d9d8a979c62c5a5d /dxr3device.c | |
parent | cf802dcabc8388df1519dbe10d8f8a247fd9fe72 (diff) | |
download | vdr-plugin-dxr3-3ebb171e520d0dce353cec489ca4b91bd74521b6.tar.gz vdr-plugin-dxr3-3ebb171e520d0dce353cec489ca4b91bd74521b6.tar.bz2 |
add basic PulseAudio audio suppport - NOT TESTED!
requested by loswillios
Diffstat (limited to 'dxr3device.c')
-rw-r--r-- | dxr3device.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/dxr3device.c b/dxr3device.c index 938388a..ef2cc53 100644 --- a/dxr3device.c +++ b/dxr3device.c @@ -27,6 +27,7 @@ #include "dxr3osd.h" #include "dxr3audio-oss.h" #include "dxr3audio-alsa.h" +#include "dxr3audio-pa.h" #include "dxr3pesframe.h" #include "settings.h" @@ -47,12 +48,22 @@ cDxr3Device::cDxr3Device() : spuDecoder(NULL), pluginOn(true), vPts(0), scrSet(f claimDevices(); - if (cSettings::instance()->audioDriver() == OSS) { + switch (cSettings::instance()->audioDriver()) { + case OSS: isyslog("[dxr3-device] using oss audio driver"); audioOut = new cAudioOss(); - } else { + break; + + case ALSA: isyslog("[dxr3-device] using alsa audio driver"); audioOut = new cAudioAlsa(); + break; +#ifdef PULSEAUDIO + case PA: + isyslog("[dxr3-device] using PulseAudio audio driver"); + audioOut = new cAudioPA(); + break; +#endif } audioOut->openDevice(); |