Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/audio/libs/snd_cards_list.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/audio/libs/snd_cards_list.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/audio/libs/snd_cards_list.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/audio/libs/snd_cards_list.html on line 8
Count the sound cards and list their card numbers in an array
#include <sys/asoundlib.h>
int snd_cards_list( int *cards,
int card_array_size,
int *cards_over );
- cards
- An array in which snd_cards_list() stores the card numbers.
- card_array_size
- The number of card numbers that the array cards can hold.
- cards_over
- The number of cards that wouldn't fit in the cards array.
libasound.so
The snd_cards_list() function returns the instantaneous number
of sound cards that have running drivers.
There's no guarantee that
the sound cards have contiguous card numbers, and cards may be unmounted
at any time.
You should use this function instead of
snd_cards()
because snd_cards_list() can fill in an array of card numbers.
This overcomes the difficulties involved in hunting a
(possibly) non-contiguous list of card numbers for active cards.
The number of sound cards.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
snd_cards()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/audio/libs/snd_cards_list.html on line 121
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/audio/libs/snd_cards_list.html on line 121