From d5c01bbe5a4de6861f523450121c6f4c00539561 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 9 Mar 2002 17:11:49 +0100 Subject: Implemented OSD for Volume and Mute --- dvbapi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dvbapi.c') diff --git a/dvbapi.c b/dvbapi.c index a0bcb1bd..dc7eba0b 100644 --- a/dvbapi.c +++ b/dvbapi.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbapi.c 1.160 2002/03/09 11:59:39 kls Exp $ + * $Id: dvbapi.c 1.161 2002/03/09 14:18:25 kls Exp $ */ #include "dvbapi.h" @@ -2702,12 +2702,13 @@ bool cDvbApi::ToggleAudioTrack(void) return false; } -void cDvbApi::ToggleMute(void) +bool cDvbApi::ToggleMute(void) { int OldVolume = volume; mute = !mute; SetVolume(0, mute); volume = OldVolume; + return mute; } void cDvbApi::SetVolume(int Volume, bool Absolute) -- cgit v1.2.3