On Tue, 12 Feb 2019 13:33:33 +0100, sylvain.bertrand@gmail.com wrote:
Hi,
I got some code based on hints which, unfortunately, seems not sufficient.
I can list the hardware cards, but what is the proper way to enumerate the pcm devices?
Parsing the hints is the right way.
For instance, I don't get basic user defined pcm devices, I get all the surround pcm devices for the USB mic from my webcam etc...
The entries without hints are filtered out as default. i.e. a user-defined entry appears, too, if it contains the hints.
You can change the behavior by setting defaults.namehint.showall, too.
HTH,
Takashi
The real question: how I build a clean list of pcm devices I would present to a user to choose from without confusing him/her?
Wherever I look I get only this hint based code. I presume I am looking the wrong way.
regards,
-- Sylvain _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel