pub struct AudioAnalyzer { /* private fields */ }Expand description
Main audio analyzer that coordinates all analysis modules.
Implementations§
Source§impl AudioAnalyzer
impl AudioAnalyzer
Sourcepub fn new(config: AnalysisConfig) -> Self
pub fn new(config: AnalysisConfig) -> Self
Create a new audio analyzer with the given configuration.
Sourcepub fn analyze_frame(
&mut self,
samples: &[f32],
sample_rate: f32,
) -> Result<FrameAnalysis>
pub fn analyze_frame( &mut self, samples: &[f32], sample_rate: f32, ) -> Result<FrameAnalysis>
Analyze audio in real-time, frame by frame.
Auto Trait Implementations§
impl Freeze for AudioAnalyzer
impl RefUnwindSafe for AudioAnalyzer
impl Send for AudioAnalyzer
impl Sync for AudioAnalyzer
impl Unpin for AudioAnalyzer
impl UnsafeUnpin for AudioAnalyzer
impl UnwindSafe for AudioAnalyzer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more