Use expf() instead of an approximation
An approximation of exp function is used in Compress, but the argument can exceed +-1.0 when the input signal or the target gain is drastically changed, then the output of the function can becomes inaccurate. Use expf() to get accurate output since its performance is enough based on the benchmark. Bug: 314374972 Test: Change targetgain when using loudnessenhancer Change-Id: I47795345655b4ad8becb0ee18ef981eb40ff847f
Loading
Please register or sign in to comment