Skip to main content

Hearing

Trait Hearing 

Source
pub trait Hearing: Send + 'static {
    // Required methods
    fn process(&mut self, audio: &[f32]) -> f32;
    fn name(&self) -> &str;
}
Expand description

Trait for signal analysis algorithms.

Required Methods§

Source

fn process(&mut self, audio: &[f32]) -> f32

Process a block of signal data and return a scalar value.

Source

fn name(&self) -> &str

Name of the algorithm.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§