summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
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);