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_pcm_find.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_pcm_find.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_pcm_find.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_pcm_find.html on line 8
Find all PCM devices in the system that meet the given criteria
#include <sys/asoundlib.h>
int snd_pcm_find( unsigned int format,
int *number,
int *cards,
int *devices,
int mode );
- format
- Any combination of the SND_PCM_FMT_* constants.
Here are the most commonly used flags:
- SND_PCM_FMT_U8 — unsigned 8-bit PCM.
- SND_PCM_FMT_S8 — signed 8-bit PCM.
- SND_PCM_FMT_U16_LE — unsigned 16-bit PCM little endian.
- SND_PCM_FMT_U16_BE — unsigned 16-bit PCM big endian.
- SND_PCM_FMT_S16_LE — signed 16-bit PCM little endian.
- SND_PCM_FMT_S16_BE — signed 16-bit PCM big endian.
- SND_PCM_FMT_IEC958_SUBFRAME — S/PDIF data (AC3).
- number
- The size of the card and device arrays that cards and
devices point to.
On return, number contains the total number of devices found.
- cards
- An array in which snd_pcm_find() stores the numbers of the
cards it finds.
- devices
- An array in which snd_pcm_find() stores the numbers of the
devices it finds.
- mode
- One of the following:
- SND_PCM_OPEN_PLAYBACK — the playback channel.
- SND_PCM_OPEN_CAPTURE — the capture channel.
libasound.so
The snd_pcm_find() function finds all PCM devices
in the system that support any combination of the given
format parameters in the given mode.
The card and device arrays are to be considered paired: the
following uniquely defines the first PCM device:
card[0] + device[0]
A positive integer representing the total number of devices found
(same as number on return), or a negative value on error.
- -EINVAL
- Invalid mode or format.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
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_pcm_find.html on line 176
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_pcm_find.html on line 176