mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 06:42:03 +00:00
mixer: silence message about inserting volume filter
But only if softvol is enabled. Otherwise, it should be a warning.
This commit is contained in:
parent
caeff2b1be
commit
d80b84f1a0
5
mixer.c
5
mixer.c
@ -103,8 +103,9 @@ static void setvolume_internal(mixer_t *mixer, float l, float r)
|
||||
af_to_dB(AF_NCH, db_vals, db_vals, 20.0);
|
||||
if (!af_control_any_rev(mixer->afilter,
|
||||
AF_CONTROL_VOLUME_LEVEL | AF_CONTROL_SET,
|
||||
db_vals)) {
|
||||
mp_tmsg(MSGT_GLOBAL, MSGL_INFO,
|
||||
db_vals))
|
||||
{
|
||||
mp_tmsg(MSGT_GLOBAL, mixer->softvol ? MSGL_V : MSGL_WARN,
|
||||
"[Mixer] No hardware mixing, inserting volume filter.\n");
|
||||
if (!(af_add(mixer->afilter, "volume")
|
||||
&& af_control_any_rev(mixer->afilter,
|
||||
|
Loading…
Reference in New Issue
Block a user