From b38753888777a22e4f822508c786a62248aea108 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 6 Jan 2005 13:50:17 +0100 Subject: Implemented left/right/stereo selection --- dvbdevice.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'dvbdevice.c') 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()) { -- cgit v1.2.3