fn decibels_y_position(frame: &mut Frame, value: Decibels) -> f32 {
        let max_ampl = Self::max_amplitude();
        let min_ampl = Self::min_amplitude();
        let value = db_to_render(value.as_db());
        interpolate(value, (min_ampl, max_ampl), (frame.height(), 0.0))
    }
/// The Y coordinate for a given `value` in decibels. The return value is reversed.
///
/// This is for rendering values between -Infinity decibels and `VolumeMeterProgram::max_amplitude`
/// decibels.
The Y coordinate for a given `value` in decibels. The return value is reversed.
This is for rendering values between -Infinity decibels and `VolumeMeterProgram::max_amplitude`
decibels.
The Y coordinate for a given ` value ` in decibels . The return value is reversed . This is for rendering values between - Infinity decibels and ` VolumeMeterProgram :: max_amplitude ` decibels .
fn decibels_y_position(frame: &mut Frame, value: Decibels) -> f32 {
        let max_ampl = Self::max_amplitude();
        let min_ampl = Self::min_amplitude();
        let value = db_to_render(value.as_db());
        interpolate(value, (min_ampl, max_ampl), (frame.height(), 0.0))
    }
fn decibels_y_position ( frame : & mut Frame , value : Decibels ) -> f32 { let max_ampl = Self :: max_amplitude ( ) ; let min_ampl = Self :: min_amplitude ( ) ; let value = db_to_render ( value . as_db ( ) ) ; interpolate ( value , ( min_ampl , max_ampl ) , ( frame . height ( ) , 0.0 ) ) }
The Y coordinate for a given `value` in decibels.
The Y coordinate for a given ` value ` in decibels .
frame
&mut Frame
value
Decibels
frame
&mut Frame
value
Decibels