Function nih_plug::util::db_to_gain_fast
source · pub fn db_to_gain_fast(dbs: f32) -> f32
Expand description
An approximation of db_to_gain()
using exp()
. Does not treat values below
MINUS_INFINITY_DB
as 0.0 gain to avoid branching. As a result this function will thus also
never return 0.0 for normal input values. Will run faster on most architectures, but the result
may be slightly different.