diff options
author | wm4 <wm4@nowhere> | 2017-04-04 15:04:07 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-04 15:04:07 +0200 |
commit | b96a74ec2a77a4fb8d62d331dcd9ed087e9813e6 (patch) | |
tree | 773d3cf493384ca11f2ba7da25174fb88c7731b2 /player | |
parent | 98f8c4f36de0f08fec649aab16358190bf8d41b8 (diff) |
audio: deprecate most audio filters
Well, ok, only 4 filters. The rest will survive in one or the other
form.
Diffstat (limited to 'player')
-rw-r--r-- | player/audio.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); } |