Added snd_card_type_string_to_enum and snd_card_type_enum_to_string functions.

- the /usr/share/alsa/cards.conf file contains the translation table
Added snd_sctl_build and snd_sctl_free functions.
Recoded the surround plugin to use the surround.conf file.
 - the /usr/share/alsa/surround.conf file contains the surround configuration
This commit is contained in:
Jaroslav Kysela 2001-05-10 08:32:40 +00:00
parent a5ddd2f21f
commit 232d703c23
10 changed files with 780 additions and 340 deletions

View file

@ -4,11 +4,11 @@ sysinclude_HEADERS = asoundlib.h
# This is the order they will be concatenated into asoundlib.h!
#
header_files=header.h version.h global.h input.h output.h error.h \
pcm.h rawmidi.h timer.h \
conf.h pcm.h rawmidi.h timer.h \
hwdep.h hwdep_m4.h control.h \
mixer.h \
seq.h seqmid.h seq_midi_event.h \
conv.h instr.h conf.h footer.h
conv.h instr.h footer.h
noinst_HEADERS=$(header_files) search.h list.h aserver.h local.h

View file

@ -246,6 +246,16 @@ typedef enum _snd_ctl_type {
/** CTL handle */
typedef struct _snd_ctl snd_ctl_t;
/** SCTL replace type */
typedef struct {
const char *key;
const char *old_value;
const char *new_value;
} snd_sctl_replace_t;
/** SCTL type */
typedef struct _snd_sctl snd_sctl_t;
#ifdef __cplusplus
extern "C" {
#endif
@ -263,6 +273,12 @@ int snd_defaults_pcm_device(void);
int snd_defaults_rawmidi_card(void);
int snd_defaults_rawmidi_device(void);
int snd_card_type_string_to_enum(const char *strid, snd_card_type_t *enumid);
int snd_card_type_enum_to_string(snd_card_type_t enumid, char **strid);
int snd_sctl_build(snd_ctl_t *ctl, snd_sctl_t **setup, snd_config_t *config, snd_sctl_replace_t *replace);
int snd_sctl_free(snd_ctl_t *ctl, snd_sctl_t *setup);
int snd_ctl_open(snd_ctl_t **ctl, const char *name, int mode);
int snd_ctl_close(snd_ctl_t *ctl);
int snd_ctl_nonblock(snd_ctl_t *ctl, int nonblock);