Module beat_detector::record[][src]

Expand description

Module for audio recording from an audio input device. This needs std-functionality.

Functions

audio_input_device_list

Convenient function which helps you to select from a number of audio devices using “cpal” audio library.

get_backends
print_audio_input_device_configs

Convenient function which helps you to get capabilities of each audio device covered by “cpal” audio library.

start_listening

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.