pub struct Config {
pub classifiers: &'static [Classifier],
pub filter_coefficients: &'static [f64],
pub interpolate: bool,
pub remove_silence: bool,
pub silence_threshold: i16,
pub frame_size: usize,
pub frame_overlap: usize,
pub sample_rate: u32,
}Expand description
Configuration for a fingerprinting algorithm variant.
Fields§
§classifiers: &'static [Classifier]§filter_coefficients: &'static [f64]§interpolate: bool§remove_silence: bool§silence_threshold: i16§frame_size: usize§frame_overlap: usize§sample_rate: u32Implementations§
Source§impl Config
impl Config
pub fn frame_increment(&self) -> usize
pub fn max_filter_width(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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