Search guides and the APICtrl K
  1. API reference
  2. System, devices and network

audio_alsa_input.h

Linux audio capture (ALSA, dlopened).

#include <sonore/audio_alsa_input.h>
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.

Aliases 1

↑↓ to move↵ to openEvery public name in the headers, and every guide