From b96a74ec2a77a4fb8d62d331dcd9ed087e9813e6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 4 Apr 2017 15:04:07 +0200 Subject: audio: deprecate most audio filters Well, ok, only 4 filters. The rest will survive in one or the other form. --- player/audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'player') diff --git a/player/audio.c b/player/audio.c index d15f4e9869..d05cae83cd 100644 --- a/player/audio.c +++ b/player/audio.c @@ -135,7 +135,8 @@ void audio_update_volume(struct MPContext *mpctx) if (gain == 1.0) return; MP_VERBOSE(mpctx, "Inserting volume filter.\n"); - if (!(af_add(ao_c->af, "volume", "softvol", NULL) + char *args[] = {"warn", "no", NULL}; + if (!(af_add(ao_c->af, "volume", "softvol", args) && af_control_any_rev(ao_c->af, AF_CONTROL_SET_VOLUME, &gain))) MP_ERR(mpctx, "No volume control available.\n"); } -- cgit v1.2.3