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: usizeframe_size: usizewindow_size: usizefreq_size: usizefft_forward: Arc<dyn RealToComplex<f32>>fft_inverse: Arc<dyn ComplexToReal<f32>>window: Vec<f32>wnorm: f32erb: Vec<usize>Implementations
sourceimpl 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 !RefUnwindSafe for DFState
impl Send for DFState
impl Sync for DFState
impl Unpin for DFState
impl !UnwindSafe for DFState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more