pub struct MultiChannelStreamingStft<T: Float + FftNum> { /* private fields */ }Expand description
Multi-channel streaming STFT processor with independent state per channel.
Implementations§
Source§impl<T: Float + FftNum + FromPrimitive + Debug> MultiChannelStreamingStft<T>where
FftPlanner<T>: FftPlannerTrait<T>,
impl<T: Float + FftNum + FromPrimitive + Debug> MultiChannelStreamingStft<T>where
FftPlanner<T>: FftPlannerTrait<T>,
Sourcepub fn new(config: StftConfig<T>, num_channels: usize) -> Self
pub fn new(config: StftConfig<T>, num_channels: usize) -> Self
Create a new multi-channel streaming STFT processor.
§Arguments
config- STFT configurationnum_channels- Number of channels
Sourcepub fn push_samples(&mut self, channels: &[&[T]]) -> Vec<Vec<SpectrumFrame<T>>>
pub fn push_samples(&mut self, channels: &[&[T]]) -> Vec<Vec<SpectrumFrame<T>>>
Sourcepub fn flush(&mut self) -> Vec<Vec<SpectrumFrame<T>>>
pub fn flush(&mut self) -> Vec<Vec<SpectrumFrame<T>>>
Flush all channels and return remaining frames.
Sourcepub fn num_channels(&self) -> usize
pub fn num_channels(&self) -> usize
Get the number of channels.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MultiChannelStreamingStft<T>
impl<T> !RefUnwindSafe for MultiChannelStreamingStft<T>
impl<T> Send for MultiChannelStreamingStft<T>
impl<T> Sync for MultiChannelStreamingStft<T>
impl<T> Unpin for MultiChannelStreamingStft<T>where
T: Unpin,
impl<T> !UnwindSafe for MultiChannelStreamingStft<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