Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
snd_cards

snd_cards

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

snd_cards()

Count the sound cards

Synopsis:

#include <sys/asoundlib.h>

int snd_cards ( void );

Library:

libasound.so

Description:

The snd_cards() 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.


Note: This function is mainly provided for historical reasons. You should use snd_cards_list() instead.

Returns:

The number of sound cards.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

snd_cards_list()