#[non_exhaustive]pub struct AnalyzeConfig { /* private fields */ }Expand description
Window and hop of the PCM analyzer.
Both are given in time and rounded once to whole samples when an Analyzer is created, so
frame positions never drift at sample rates where the hop is not a whole number of samples.
Implementations§
Source§impl AnalyzeConfig
impl AnalyzeConfig
Sourcepub fn frames(
self,
window: Duration,
hop: Duration,
) -> Result<Self, ConfigError>
pub fn frames( self, window: Duration, hop: Duration, ) -> Result<Self, ConfigError>
Sets the level window and the hop between frames. The window is centered on its hop.
§Errors
ConfigError::InvalidFrames if the hop is zero or longer than the window.
Trait Implementations§
Source§impl Clone for AnalyzeConfig
impl Clone for AnalyzeConfig
Source§impl Debug for AnalyzeConfig
impl Debug for AnalyzeConfig
Source§impl PartialEq for AnalyzeConfig
impl PartialEq for AnalyzeConfig
impl StructuralPartialEq for AnalyzeConfig
Auto Trait Implementations§
impl Freeze for AnalyzeConfig
impl RefUnwindSafe for AnalyzeConfig
impl Send for AnalyzeConfig
impl Sync for AnalyzeConfig
impl Unpin for AnalyzeConfig
impl UnsafeUnpin for AnalyzeConfig
impl UnwindSafe for AnalyzeConfig
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