pub fn linear_amplitude_to_db(ratio: f64) -> f64
Converts an amplitude (voltage) ratio to decibels, 20 log10(ratio).
20 log10(ratio)