diff options
author | wm4 <wm4@nowhere> | 2012-07-29 22:28:18 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-07-30 01:46:04 +0200 |
commit | d80b84f1a070630a2320ccf4d8ec1da1cdda1904 (patch) | |
tree | 3c8905022bee0f53559e6314e25d0401ebe6e813 /mixer.c | |
parent | caeff2b1bed6a53ef7707251c57731fc29b667e0 (diff) | |
download | mpv-d80b84f1a070630a2320ccf4d8ec1da1cdda1904.tar.bz2 mpv-d80b84f1a070630a2320ccf4d8ec1da1cdda1904.tar.xz |
mixer: silence message about inserting volume filter
But only if softvol is enabled. Otherwise, it should be a warning.
Diffstat (limited to 'mixer.c')
-rw-r--r-- | mixer.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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, |