Skip to contentSkip to conversation

How to get a list of sound devices

DISCUSSION Kenth Andersson 2 participants 2 messages Oct 5, 2005

lore
Share & tools
lore
#0 lore raw

How do I from my C/C++ program get a list of all available sound devices on a ALSA machine,
including the aliases and dsnoop/dmix devices that my .asoundrc file sets up? I've checked the API and didn't see any matching functions.

/Kenth

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl

#1 lore raw
Quoted 4 lines · Kenth Andersson

How do I from my C/C++ program get a list of all available sound devices on a ALSA machine,
including the aliases and dsnoop/dmix devices that my .asoundrc file sets up? I've checked the API and didn't see any matching functions.

There are infinitely many possible device names; but try snd_names_list().

HTH
Clemens

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl