From 68bbab0e42e141896545f1f6e9699bcad2d685f8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 22 May 2015 18:35:03 +0200 Subject: audio: change range of volume option/property Now --volume takes an absolute volume, meaning it doesn't depend on --softvol-max. 0 is still silence, and 100 now always means unchanged volume. The OSD and the "volume" property are changed accordingly. Also raise the minimum value of --softvol-max. A value below 100 makes no sense and breaks the OSD. --- audio/mixer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/mixer.h') diff --git a/audio/mixer.h b/audio/mixer.h index 5aaf605e08..4e2ff350ff 100644 --- a/audio/mixer.h +++ b/audio/mixer.h @@ -44,7 +44,7 @@ void mixer_setmute(struct mixer *mixer, bool mute); bool mixer_getmute(struct mixer *mixer); void mixer_getbalance(struct mixer *mixer, float *bal); void mixer_setbalance(struct mixer *mixer, float bal); -float mixer_getneutralvolume(struct mixer *mixer); +float mixer_getmaxvolume(struct mixer *mixer); char *mixer_get_volume_restore_data(struct mixer *mixer); #endif /* MPLAYER_MIXER_H */ -- cgit v1.2.3