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 /device.c | |
parent | 42ab8c87973f2d7549ac939fc991138ed1ec537c (diff) | |
download | vdr-b38753888777a22e4f822508c786a62248aea108.tar.gz vdr-b38753888777a22e4f822508c786a62248aea108.tar.bz2 |
Implemented left/right/stereo selection
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 1.67 2005/01/04 15:38:46 kls Exp $ + * $Id: device.c 1.68 2005/01/06 13:30:30 kls Exp $ */ #include "device.h" @@ -582,10 +582,23 @@ bool cDevice::HasProgramme(void) return Replaying() || pidHandles[ptAudio].pid || pidHandles[ptVideo].pid; } +int cDevice::GetAudioChannelDevice(void) +{ + return 0; +} + +void cDevice::SetAudioChannelDevice(int AudioChannel) +{ +} + void cDevice::SetVolumeDevice(int Volume) { } +void cDevice::SetDigitalAudioDevice(bool On) +{ +} + void cDevice::SetAudioTrackDevice(eTrackType Type) { } @@ -607,6 +620,18 @@ bool cDevice::ToggleMute(void) return mute; } +int cDevice::GetAudioChannel(void) +{ + int c = GetAudioChannelDevice(); + return (0 <= c && c <= 2) ? c : 0; +} + +void cDevice::SetAudioChannel(int AudioChannel) +{ + if (0 <= AudioChannel && AudioChannel <= 2) + SetAudioChannelDevice(AudioChannel); +} + void cDevice::SetVolume(int Volume, bool Absolute) { volume = min(max(Absolute ? Volume : volume + Volume, 0), MAXVOLUME); |