mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 21:27:08 +00:00
af_volume: dump applied replaygain in verbose mode
This commit is contained in:
parent
38b503af7b
commit
fda44ecc92
@ -76,8 +76,12 @@ static int control(struct af_instance *af, int cmd, void *arg)
|
||||
gain += s->rgain_preamp;
|
||||
af_from_dB(1, &gain, &s->rgain, 20.0, -200.0, 60.0);
|
||||
|
||||
if (!s->rgain_clip) // clipping prevention
|
||||
MP_VERBOSE(af, "Applying replay-gain: %f\n", s->rgain);
|
||||
|
||||
if (!s->rgain_clip) { // clipping prevention
|
||||
s->rgain = MPMIN(s->rgain, 1.0 / peak);
|
||||
MP_VERBOSE(af, "...with clipping prevention: %f\n", s->rgain);
|
||||
}
|
||||
}
|
||||
if (s->detach && fabs(s->level * s->rgain - 1.0) < 0.00001)
|
||||
return AF_DETACH;
|
||||
|
Loading…
Reference in New Issue
Block a user