mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed resetting 'mute' state when setting the volume to a non-zero value
This commit is contained in:
parent
18ab84b0c1
commit
eb89599c58
1
HISTORY
1
HISTORY
@ -1080,3 +1080,4 @@ Video Disk Recorder Revision History
|
|||||||
startup (suggested by Mirko Günther).
|
startup (suggested by Mirko Günther).
|
||||||
- The new SVDRP command VOLU can be used to control the audio volume (suggested
|
- The new SVDRP command VOLU can be used to control the audio volume (suggested
|
||||||
by Mirko Günther).
|
by Mirko Günther).
|
||||||
|
- Fixed resetting 'mute' state when setting the volume to a non-zero value.
|
||||||
|
4
dvbapi.c
4
dvbapi.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: dvbapi.c 1.158 2002/03/08 16:31:23 kls Exp $
|
* $Id: dvbapi.c 1.159 2002/03/09 10:14:07 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dvbapi.h"
|
#include "dvbapi.h"
|
||||||
@ -2717,6 +2717,8 @@ void cDvbApi::SetVolume(int Volume, bool Absolute)
|
|||||||
audioMixer_t am;
|
audioMixer_t am;
|
||||||
am.volume_left = am.volume_right = volume;
|
am.volume_left = am.volume_right = volume;
|
||||||
CHECK(ioctl(fd_audio, AUDIO_SET_MIXER, &am));
|
CHECK(ioctl(fd_audio, AUDIO_SET_MIXER, &am));
|
||||||
|
if (volume > 0)
|
||||||
|
mute = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user