commit | a322af669f6074abff02bb3311f695d17ee51691 | [log] [tgz] |
---|---|---|
author | Tomoharu Kasahara <Tomoharu.Kasahara@sony.com> | Sat Dec 02 11:10:35 2023 +0900 |
committer | Tomoharu Kasahara <Tomoharu.Kasahara@sony.com> | Thu Dec 07 00:23:36 2023 +0000 |
tree | 7a97ce69025ded748090d817963fe2647ccf9385 | |
parent | 3e2768a638ed08858ea9a4f71384454b1dc1e588 [diff] |
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