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

snd_pcm_find()

Find all PCM devices in the system that meet the given criteria

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_find( unsigned int format, 
                  int *number, 
                  int *cards, 
                  int *devices, 
                  int mode );

Arguments:

format
Any combination of the SND_PCM_FMT_* constants. Here are the most commonly used flags:
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:

Library:

libasound.so

Description:

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] 

Returns:

A positive integer representing the total number of devices found (same as number on return), or a negative value on error.

Errors:

-EINVAL
Invalid mode or format.

Classification:

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