mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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).
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user