pub struct StreamingIstft<T: Float + FftNum> { /* private fields */ }Implementations§
Source§impl<T: Float + FftNum + FromPrimitive + Debug> StreamingIstft<T>
impl<T: Float + FftNum + FromPrimitive + Debug> StreamingIstft<T>
pub fn new(config: StftConfig<T>) -> Self
pub fn push_frame(&mut self, frame: &SpectrumFrame<T>) -> Vec<T>
Sourcepub fn push_frame_into(
&mut self,
frame: &SpectrumFrame<T>,
output: &mut Vec<T>,
) -> usize
pub fn push_frame_into( &mut self, frame: &SpectrumFrame<T>, output: &mut Vec<T>, ) -> usize
Push a frame and write output samples into a pre-allocated buffer. Returns the number of samples written.
pub fn flush(&mut self) -> Vec<T>
pub fn reset(&mut self)
Auto Trait Implementations§
impl<T> Freeze for StreamingIstft<T>
impl<T> !RefUnwindSafe for StreamingIstft<T>
impl<T> Send for StreamingIstft<T>
impl<T> Sync for StreamingIstft<T>
impl<T> Unpin for StreamingIstft<T>where
T: Unpin,
impl<T> !UnwindSafe for StreamingIstft<T>
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> 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