On Tue, 2003-02-11 at 08:53, Martin Herren wrote:
[..]
> An additional question, what is the correct way to find out all existing cards/buses 
>on a system ? Currently we scan /proc/asound/card?/ for all pcmX[cp]. Is there a 
>better way to do it ?
> 
I think you case use a loop with snd_card_next

from alsa-lib/src/control/card.c
 /**
 * \brief Try to determine the next card.
 * \param rcard pointer to card number
 * \result zero if success, otherwise a negative error code
 *
 * Tries to determine the next card from given card number.
 * If card number is -1, then the first available card is
 * returned. If the result card number is -1, no more cards
 * are available.
 */
int snd_card_next(int *rcard)  

-- 
Patrice Tisserand <[EMAIL PROTECTED]>
IRCAM



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to