snd_device_name_hint()
can return multiple device names for the same hardware device (e.g., plughw
and hw
).
It can also returns devices that do not correspond to a single hardware device (such as null
, or PulseAudio/Jack/Bluetooth devices).
To enumerate hardware devices, call snd_card_next()
and snd_ctl_pcm_next_device()
(see the aplay source code for an example).
To check whether a sample rate is supported, call snd_pcm_hw_params_test_rate()
.