/// Create a new RMS window with size & replace the old one with it.
Create a new RMS window with size & replace the old one with it.
Create a new RMS window with size & replace the old one with it .
fn resize(&self, gc_handle: &Handle, num_channels: usize, num_samples: usize) {
        self.cursor.store(0, Ordering::Relaxed);
        let mut window = VecAudioBuffer::new();
        window.resize(num_channels, num_samples, AtomicF32::from(0.0));
        self.window.replace(Shared::new(gc_handle, window));
        let mut running_sums = Vec::new();
        running_sums.resize(num_channels, AtomicF32::from(0.0));
        self.running_sums
            .replace(Shared::new(gc_handle, running_sums));
    }
fn resize ( & self , gc_handle : & Handle , num_channels : usize , num_samples : usize ) { self . cursor . store ( 0 , Ordering :: Relaxed ) ; let mut window = VecAudioBuffer :: new ( ) ; window . resize ( num_channels , num_samples , AtomicF32 :: from ( 0.0 ) ) ; self . window . replace ( Shared :: new ( gc_handle , window ) ) ; let mut running_sums = Vec :: new ( ) ; running_sums . resize ( num_channels , AtomicF32 :: from ( 0.0 ) ) ; self . running_sums . replace ( Shared :: new ( gc_handle , running_sums ) ) ; }
Create a new RMS window with size & replace the old one with it.
Create a new RMS window with size & replace the old one with it .
&self
gc_handle
&Handle
num_channels
usize
num_samples
usize