pub struct SnapshotConfig {
pub sample_rate: f64,
pub num_samples: usize,
pub processing_mode: Processing,
pub warm_up: WarmUp,
pub allow_abnormal_samples: bool,
pub output_mode: SnapshotOutputMode,
}Expand description
Configuration for snapshotting an audio unit.
Fields§
§sample_rate: f64Sample rate of the audio unit.
Default is 44100.0 fundsp::DEFAULT_SR
num_samples: usizeNumber of samples to generate.
Default is 1024
processing_mode: ProcessingProcessing mode for snapshotting an audio unit.
Default - Tick
warm_up: WarmUpWarm-up mode for snapshotting an audio unit.
Default - WarmUp::None
allow_abnormal_samples: boolHow to handle abnormal samples: NaN,±Infinity
When set to true abnormal samples are allowed during processing,
but skipped in actual output. Plotted with labeled dots.
When set to false and encoutered abnormal samples,
the snapshotting process will panic.
output_mode: SnapshotOutputModeSnaphsot output mode
Use configurable chart for visual snapshots
Use Wav16 or Wav32 for audial snapshots
Implementations§
Trait Implementations§
Source§impl Clone for SnapshotConfig
impl Clone for SnapshotConfig
Source§fn clone(&self) -> SnapshotConfig
fn clone(&self) -> SnapshotConfig
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 moreSource§impl Debug for SnapshotConfig
impl Debug for SnapshotConfig
Auto Trait Implementations§
impl Freeze for SnapshotConfig
impl !RefUnwindSafe for SnapshotConfig
impl !Send for SnapshotConfig
impl !Sync for SnapshotConfig
impl Unpin for SnapshotConfig
impl !UnwindSafe for SnapshotConfig
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