audio_alsa_input.h
Linux audio capture (ALSA, dlopened).
#include <sonore/audio_alsa_input.h>- 1type
- 1other declaration
- Guides: Platforms and formats
On this page
Design notes
The mirror of audio_alsa.h, with the same policy for the same reason: libasound is resolved at RUNTIME, so the SDK builds with no ALSA dev package and a machine with no sound card (CI, WSL) fails gracefully with a named reason rather than failing to build.
snd_pcm_set_params is asked to allow resampling, which is what lets a 44.1k interface feed a 48k session -- the same job AUTOCONVERTPCM does on Windows, and the same reason: the output picked the rate before capture was opened and the DSP is already prepared at it.
Types 1
No comment on this one in the header yet; the source says the rest.