Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

cards.c File Reference

Basic Soundcard Operations. More...


Functions

int snd_card_load (int card)
 Try to load the driver for a card.

int snd_card_next (int *rcard)
 Try to determine the next card.

int snd_card_get_index (const char *string)
 Convert card string to an integer value.

int snd_card_get_name (int card, char **name)
 Obtain the card name.

int snd_card_get_longname (int card, char **name)
 Obtain the card long name.


Detailed Description

Basic Soundcard Operations.

Author:
Jaroslav Kysela <perex@suse.cz>
Date:
1998-2001

Function Documentation

int snd_card_get_index const char *    string
 

Convert card string to an integer value.

Parameters:
string  String containing card identifier
Returns:
zero if success, otherwise a negative error code
The accepted format is an integer value in ASCII representation or the card identifier (the id parameter for sound-card drivers).

int snd_card_get_longname int    card,
char **    name
 

Obtain the card long name.

Parameters:
card  Card number
name  Result - card long name corresponding to card number
Returns:
zero if success, otherwise a negative error code

int snd_card_get_name int    card,
char **    name
 

Obtain the card name.

Parameters:
card  Card number
name  Result - card name corresponding to card number
Returns:
zero if success, otherwise a negative error code

int snd_card_load int    card
 

Try to load the driver for a card.

Parameters:
card  Card number.
Returns:
1 if driver is present, zero if driver is not present

int snd_card_next int *    rcard
 

Try to determine the next card.

Parameters:
rcard  pointer to card number
Returns:
zero if success, otherwise a negative error code
Tries to determine the next card from given card number. If card number is -1, then the first available card is returned. If the result card number is -1, no more cards are available.


Generated on Thu Apr 1 16:46:00 2004 for ALSA project - the C library reference by doxygen1.2.18