pub fn reset_rate(&mut self, rate: u32) {
        self.last_level = 0;
        self.level_diff = 0;
        self.window_start = None;
        self.window_frames = 0;
        self.lsq = LeastSquares::new();
        self.estimated_rate = rate as f64;
    }
/// Resets the estimated rate
///
/// Reset the estimated rate to `rate`, and erase all collected data.
Resets the estimated rate
Reset the estimated rate to `rate`, and erase all collected data.
Resets the estimated rate Reset the estimated rate to ` rate ` and erase all collected data .
pub fn reset_rate(&mut self, rate: u32) {
        self.last_level = 0;
        self.level_diff = 0;
        self.window_start = None;
        self.window_frames = 0;
        self.lsq = LeastSquares::new();
        self.estimated_rate = rate as f64;
    }
pub fn reset_rate ( & mut self , rate : u32 ) { self . last_level = 0 ; self . level_diff = 0 ; self . window_start = None ; self . window_frames = 0 ; self . lsq = LeastSquares :: new ( ) ; self . estimated_rate = rate as f64 ; }
Resets the estimated rate
Reset the estimated rate to `rate`, and erase all collected data.
Resets the estimated rate Reset the estimated rate to ` rate ` and erase all collected data .
&mut self
rate
u32
&mut self
rate
u32