summaryrefslogtreecommitdiff
path: root/device.h
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.h
parent42ab8c87973f2d7549ac939fc991138ed1ec537c (diff)
downloadvdr-b38753888777a22e4f822508c786a62248aea108.tar.gz
vdr-b38753888777a22e4f822508c786a62248aea108.tar.bz2
Implemented left/right/stereo selection
Diffstat (limited to 'device.h')
-rw-r--r--device.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/device.h b/device.h
index 54e36bd2..200349ee 100644
--- a/device.h
+++ b/device.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.h 1.49 2005/01/02 14:08:36 kls Exp $
+ * $Id: device.h 1.50 2005/01/06 13:27:42 kls Exp $
*/
#ifndef __DEVICE_H
@@ -345,15 +345,26 @@ private:
bool mute;
int volume;
protected:
+ virtual int GetAudioChannelDevice(void);
+ ///< Gets the current audio channel, which is stereo (0), mono left (1) or
+ ///< mono right (2).
+ virtual void SetAudioChannelDevice(int AudioChannel);
+ ///< Sets the audio channel to stereo (0), mono left (1) or mono right (2).
virtual void SetVolumeDevice(int Volume);
///< Sets the audio volume on this device (Volume = 0...255).
- virtual void SetDigitalAudioDevice(bool On) {}
+ virtual void SetDigitalAudioDevice(bool On);
///< Tells the actual device that digital audio output shall be switched
///< on or off.
public:
bool IsMute(void) const { return mute; }
bool ToggleMute(void);
///< Turns the volume off or on and returns the new mute state.
+ int GetAudioChannel(void);
+ ///< Gets the current audio channel, which is stereo (0), mono left (1) or
+ ///< mono right (2).
+ void SetAudioChannel(int AudioChannel);
+ ///< Sets the audio channel to stereo (0), mono left (1) or mono right (2).
+ ///< Any other values will be silently ignored.
void SetVolume(int Volume, bool Absolute = false);
///< Sets the volume to the given value, either absolutely or relative to
///< the current volume.