compress: Apply damping later.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 23 Jul 2018 08:52:14 +0000 (10:52 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 2 Sep 2018 15:42:54 +0000 (17:42 +0200)
commite0441a354b25f6fdd97480fe4e1f4f942347611f
treec7bfa5328de356ba31dc648c7a253c1d5cd711c1
parent6b966e1df730ab787014b4bd5dd08214d3722bfe
compress: Apply damping later.

This changes the algorithm of the compress filter to apply the right
shift defined by the --damp argument *after* the peak value of the
current block has been computed. This makes damping orthogonal to
the dynamic volume adjustments.

However, we increase the downshift so that the initial value of the
gain multiplier results in a right shift by one. Hence the expected
peak value is 16384, so make this the default target gain.
compress_filter.c
m4/lls/filter_cmd.suite.m4