diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-06 13:50:17 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-06 13:50:17 +0100 |
commit | b38753888777a22e4f822508c786a62248aea108 (patch) | |
tree | 8f6ba89f8dc30a5ad7d717f9c12a71b0bb97f076 /dvbdevice.c | |
parent | 42ab8c87973f2d7549ac939fc991138ed1ec537c (diff) | |
download | vdr-b38753888777a22e4f822508c786a62248aea108.tar.gz vdr-b38753888777a22e4f822508c786a62248aea108.tar.bz2 |
Implemented left/right/stereo selection
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 18 |
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()) { |