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>) -> Selfwhere
FftPlanner<T>: FftPlannerTrait<T>,
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)
Trait Implementations§
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