Module audio_visualizer::dynamic::live_input[][src]

Expand description

This module enables to record audio and store the latest audio data in a synchronized ringbuffer. See setup_audio_input_loop.

It uses the cpal crate to record audio.

Structs

Describes the audio input device that should be used and the config for the input stream. Caller must be certain, that the config works for the given device on the current platform.

Functions

Lists all input devices for cpal. Can be used to select a device for setup_audio_input_loop.

Sets up audio recording with the cpal library on the given audio input device. If no input device is given, it uses the default input device. Panics, if it not present. Returns the stream plus the chosen config for the device.