summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-22 13:41:49 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-22 13:41:49 +0200
commit793503a2f548dae46e2505fd63e7b541543c45a8 (patch)
tree230f6d28dc90f713b5130cf9043e03c5ba37cef7 /dvbapi.c
parentfe9d7f05458bc34fa3791fb1dc1728e325c9532b (diff)
downloadvdr-793503a2f548dae46e2505fd63e7b541543c45a8.tar.gz
vdr-793503a2f548dae46e2505fd63e7b541543c45a8.tar.bz2
Saving current volume to setup.conf
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dvbapi.c b/dvbapi.c
index d7b4ebfb..064bb49c 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -7,7 +7,7 @@
* DVD support initially written by Andreas Schultz <aschultz@warp10.net>
* based on dvdplayer-0.5 by Matjaz Thaler <matjaz.thaler@guest.arnes.si>
*
- * $Id: dvbapi.c 1.127 2001/09/22 09:24:59 kls Exp $
+ * $Id: dvbapi.c 1.128 2001/09/22 13:39:56 kls Exp $
*/
//#define DVDDEBUG 1
@@ -2540,7 +2540,7 @@ cDvbApi::cDvbApi(int n)
#endif
currentChannel = 1;
mute = false;
- volume = 255;
+ volume = MAXVOLUME;
}
cDvbApi::~cDvbApi()
@@ -3637,7 +3637,7 @@ void cDvbApi::ToggleMute(void)
void cDvbApi::SetVolume(int Volume, bool Absolute)
{
if (fd_audio >= 0) {
- volume = min(max(Absolute ? Volume : volume + Volume, 0), 255);
+ volume = min(max(Absolute ? Volume : volume + Volume, 0), MAXVOLUME);
audioMixer_t am;
am.volume_left = am.volume_right = volume;
CHECK(ioctl(fd_audio, AUDIO_SET_MIXER, &am));