pub struct RingBufferStftConfig {
pub window_size: usize,
pub hop_size: usize,
pub window_fn: WindowFunction,
pub overlap_add: bool,
}Expand description
Configuration for RingBufferStft.
Fields§
§window_size: usizeFFT size. Must be a power of two and at least 4.
hop_size: usizeHop size in samples (distance between successive analysis frames).
Must be in [1, window_size].
window_fn: WindowFunctionWindow weighting function applied before the FFT.
overlap_add: boolWhen true, an overlap-add reconstruction buffer is allocated and
RingBufferStft::reconstruct becomes usable.
Trait Implementations§
Source§impl Clone for RingBufferStftConfig
impl Clone for RingBufferStftConfig
Source§fn clone(&self) -> RingBufferStftConfig
fn clone(&self) -> RingBufferStftConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RingBufferStftConfig
impl RefUnwindSafe for RingBufferStftConfig
impl Send for RingBufferStftConfig
impl Sync for RingBufferStftConfig
impl Unpin for RingBufferStftConfig
impl UnsafeUnpin for RingBufferStftConfig
impl UnwindSafe for RingBufferStftConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more