summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-06 13:50:17 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-06 13:50:17 +0100
commitb38753888777a22e4f822508c786a62248aea108 (patch)
tree8f6ba89f8dc30a5ad7d717f9c12a71b0bb97f076 /dvbdevice.c
parent42ab8c87973f2d7549ac939fc991138ed1ec537c (diff)
downloadvdr-b38753888777a22e4f822508c786a62248aea108.tar.gz
vdr-b38753888777a22e4f822508c786a62248aea108.tar.bz2
Implemented left/right/stereo selection
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 58612c03..53d1e8b0 100644
--- a/dvbdevice.c
+++ b/dvbdevice.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.c 1.109 2005/01/04 13:13:32 kls Exp $
+ * $Id: dvbdevice.c 1.110 2005/01/06 13:32:41 kls Exp $
*/
#include "dvbdevice.h"
@@ -823,6 +823,22 @@ bool cDvbDevice::HasLock(int TimeoutMs)
return dvbTuner ? dvbTuner->Locked(TimeoutMs) : false;
}
+int cDvbDevice::GetAudioChannelDevice(void)
+{
+ if (HasDecoder()) {
+ audio_status_t as;
+ CHECK(ioctl(fd_audio, AUDIO_GET_STATUS, &as));
+ return as.channel_select;
+ }
+ return 0;
+}
+
+void cDvbDevice::SetAudioChannelDevice(int AudioChannel)
+{
+ if (HasDecoder())
+ CHECK(ioctl(fd_audio, AUDIO_CHANNEL_SELECT, AudioChannel));
+}
+
void cDvbDevice::SetVolumeDevice(int Volume)
{
if (HasDecoder()) {