summaryrefslogtreecommitdiff
path: root/device.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 /device.c
parent42ab8c87973f2d7549ac939fc991138ed1ec537c (diff)
downloadvdr-b38753888777a22e4f822508c786a62248aea108.tar.gz
vdr-b38753888777a22e4f822508c786a62248aea108.tar.bz2
Implemented left/right/stereo selection
Diffstat (limited to 'device.c')
-rw-r--r--device.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/device.c b/device.c
index a709a4c6..bc551b65 100644
--- a/device.c
+++ b/device.c
@@ -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);