pub struct DFState {
pub sr: usize,
pub frame_size: usize,
pub window_size: usize,
pub freq_size: usize,
pub fft_forward: Arc<dyn RealToComplex<f32>>,
pub fft_inverse: Arc<dyn ComplexToReal<f32>>,
pub window: Vec<f32>,
pub wnorm: f32,
pub erb: Vec<usize>,
/* private fields */
}
Fields§
§sr: usize
§frame_size: usize
§window_size: usize
§freq_size: usize
§fft_forward: Arc<dyn RealToComplex<f32>>
§fft_inverse: Arc<dyn ComplexToReal<f32>>
§window: Vec<f32>
§wnorm: f32
§erb: Vec<usize>
Implementations§
Source§impl DFState
impl DFState
pub fn new( sr: usize, fft_size: usize, hop_size: usize, nb_bands: usize, min_nb_freqs: usize, ) -> Self
pub fn reset(&mut self)
pub fn process_frame(&mut self, input: &[f32], output: &mut [f32])
pub fn analysis(&mut self, input: &[f32], output: &mut [Complex32])
pub fn synthesis(&mut self, input: &mut [Complex32], output: &mut [f32])
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DFState
impl !RefUnwindSafe for DFState
impl Send for DFState
impl Sync for DFState
impl Unpin for DFState
impl !UnwindSafe for DFState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more