This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
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 );
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.
QNX Neutrino
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |