diff options
author | Jaroslav Kysela <perex@perex.cz> | 2001-05-10 08:32:40 +0000 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2001-05-10 08:32:40 +0000 |
commit | 232d703c2384bf92edbd9083a05f2f8cb9233d49 (patch) | |
tree | 53d7ac10079b0bec796ec09d176f22f991106418 /include/control.h | |
parent | a5ddd2f21fbd00615678db9b79bb25433e8ebdaa (diff) | |
download | alsa-lib-232d703c2384bf92edbd9083a05f2f8cb9233d49.tar.gz |
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
Diffstat (limited to 'include/control.h')
-rw-r--r-- | include/control.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/control.h b/include/control.h index 84e49a4c..4c6eb8e1 100644 --- a/include/control.h +++ b/include/control.h @@ -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); |