// Clean the sample buffer
// Other characteristics (rate, sample_duration, channels) remain unchanged.
Clean the sample buffer
Other characteristics (rate, sample_duration, channels) remain unchanged.
Clean the sample buffer Other characteristics ( rate sample_duration channels ) remain unchanged .
pub fn clean_samples(&mut self) {
        self.eos = false;
        self.is_new_segment = true;
        // don't cleanup self.segment_start in order to maintain continuity
        self.last_buffer_upper = 0;
        self.segment_lower = 0;
        self.lower = 0;
        self.upper = 0;
        self.samples.clear();
    }
pub fn clean_samples ( & mut self ) { self . eos = false ; self . is_new_segment = true ; // don't cleanup self.segment_start in order to maintain continuity self . last_buffer_upper = 0 ; self . segment_lower = 0 ; self . lower = 0 ; self . upper = 0 ; self . samples . clear ( ) ; }
Clean the sample buffer
Other characteristics (rate, sample_duration, channels) remain unchanged.
Clean the sample buffer Other characteristics ( rate sample_duration channels ) remain unchanged .
&mut self