pub struct SignatureGenerator { /* private fields */ }Implementations§
Source§impl SignatureGenerator
impl SignatureGenerator
pub fn make_signature_from_file( file_path: &str, ) -> Result<DecodedSignature, Box<dyn Error>>
pub fn make_signature_from_buffer( s16_mono_16khz_buffer: &[i16], ) -> DecodedSignature
Sourcepub fn do_fft(&mut self, s16_mono_16khz_buffer: &[i16], sample_rate: u32)
pub fn do_fft(&mut self, s16_mono_16khz_buffer: &[i16], sample_rate: u32)
Process audio samples and update the signature This is a public version of do_fft that also updates sample count
Sourcepub fn get_signature(&self) -> DecodedSignature
pub fn get_signature(&self) -> DecodedSignature
Get the current signature
Auto Trait Implementations§
impl Freeze for SignatureGenerator
impl RefUnwindSafe for SignatureGenerator
impl Send for SignatureGenerator
impl Sync for SignatureGenerator
impl Unpin for SignatureGenerator
impl UnwindSafe for SignatureGenerator
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