Skip to main content

gain_to_db

Function gain_to_db 

Source
pub fn gain_to_db(gain: f32) -> f32
Expand description

Convert a voltage gain ratio to decibels. Gain ratios that aren’t positive will be treated as MINUS_INFINITY_DB.