From a165a614150bb6482fe3804d845daa571ccba051 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 22 May 2015 18:44:59 +0200 Subject: audio: make softvol scale cubic This brings the volume control closer to what is percepted as linear volume change. Adjust the --softvol-max default to roughly the old maximum (roughly doubles the gain). --- options/options.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index dcd6167c4e..4c46c6f190 100644 --- a/options/options.c +++ b/options/options.c @@ -379,8 +379,8 @@ const m_option_t mp_opts[] = { ({"no", SOFTVOL_NO}, {"yes", SOFTVOL_YES}, {"auto", SOFTVOL_AUTO})), - OPT_FLOATRANGE("softvol-max", softvol_max, 0, 100, 10000), - OPT_FLOATRANGE("volume", mixer_init_volume, 0, -1, 10000), + OPT_FLOATRANGE("softvol-max", softvol_max, 0, 100, 1000), + OPT_FLOATRANGE("volume", mixer_init_volume, 0, -1, 1000), OPT_CHOICE("mute", mixer_init_mute, 0, ({"auto", -1}, {"no", 0}, @@ -644,7 +644,7 @@ const struct MPOpts mp_default_opts = { .video_decoders = NULL, .deinterlace = -1, .softvol = SOFTVOL_AUTO, - .softvol_max = 200, + .softvol_max = 130, .mixer_init_volume = -1, .mixer_init_mute = -1, .gapless_audio = -1, -- cgit v1.2.3