Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a322af66 authored by Tomoharu Kasahara's avatar Tomoharu Kasahara
Browse files

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
parent 3e2768a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment