Function beat_detector::record::start_listening[][src]

pub fn start_listening(
    on_beat_cb: impl Fn(BeatInfo) + Send + 'static,
    input_dev: Option<Device>,
    strategy: StrategyKind,
    keep_recording: Arc<AtomicBool>
) -> Result<JoinHandle<()>, String>
Expand description

Starts listening to audio events and tries to recognize beats on the audio. On each recognized beat, the specified callback is executed. It does so by starting a new thread.