pub fn gain_to_db(gain: f32) -> f32 {
    if gain > 0.0 {
        gain.log10() * 20.0
    } else {
        MINUS_INFINITY_DB
    }
}
/// Convert a voltage gain ratio to decibels. Gain ratios that aren't positive will be treated as
/// [`MINUS_INFINITY_DB`].
Convert a voltage gain ratio to decibels. Gain ratios that aren't positive will be treated as
[`MINUS_INFINITY_DB`].
Convert a voltage gain ratio to decibels . Gain ratios that aren ' t positive will be treated as [ ` MINUS_INFINITY_DB ` ] .
pub fn gain_to_db(gain: f32) -> f32 {
    if gain > 0.0 {
        gain.log10() * 20.0
    } else {
        MINUS_INFINITY_DB
    }
}
pub fn gain_to_db ( gain : f32 ) -> f32 { if gain > 0.0 { gain . log10 ( ) * 20.0 } else { MINUS_INFINITY_DB } }
Convert a voltage gain ratio to decibels.
Convert a voltage gain ratio to decibels .
gain
f32
gain
f32