pub struct StreamingSpectrogramExporter<T: Float> { /* private fields */ }Expand description
Streaming spectrogram exporter
Implementations§
Source§impl<T: Float> StreamingSpectrogramExporter<T>
impl<T: Float> StreamingSpectrogramExporter<T>
Sourcepub fn new(
output_path: &str,
sample_rate: f64,
window_size: usize,
) -> Result<Self>
pub fn new( output_path: &str, sample_rate: f64, window_size: usize, ) -> Result<Self>
Create a new spectrogram exporter
Sourcepub fn export_frame(
&mut self,
time: f64,
frame: &[Complex<T>],
sample_rate: f64,
) -> Result<()>
pub fn export_frame( &mut self, time: f64, frame: &[Complex<T>], sample_rate: f64, ) -> Result<()>
Export a single frame
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
Get number of frames exported
Auto Trait Implementations§
impl<T> Freeze for StreamingSpectrogramExporter<T>where
PhantomData<T>: Freeze,
impl<T> RefUnwindSafe for StreamingSpectrogramExporter<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Send for StreamingSpectrogramExporter<T>where
PhantomData<T>: Send,
impl<T> Sync for StreamingSpectrogramExporter<T>where
PhantomData<T>: Sync,
impl<T> Unpin for StreamingSpectrogramExporter<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for StreamingSpectrogramExporter<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for StreamingSpectrogramExporter<T>where
PhantomData<T>: UnwindSafe,
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