mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Added group and elements sorting
This commit is contained in:
parent
5cdac14059
commit
50b815f16a
2 changed files with 240 additions and 0 deletions
|
|
@ -13,6 +13,11 @@ typedef struct snd_mixer_callbacks {
|
|||
void *reserved[28]; /* reserved for the future use - must be NULL!!! */
|
||||
} snd_mixer_callbacks_t;
|
||||
|
||||
typedef struct {
|
||||
char *name;
|
||||
int weight;
|
||||
} snd_mixer_weight_entry_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
@ -47,6 +52,12 @@ int snd_mixer_element_has_control(snd_mixer_eid_t *eid);
|
|||
int snd_mixer_element_build(snd_mixer_t *handle, snd_mixer_element_t * element);
|
||||
int snd_mixer_element_free(snd_mixer_element_t * element);
|
||||
|
||||
void snd_mixer_sort_eid_name_index(snd_mixer_eid_t *list, int count);
|
||||
void snd_mixer_sort_eid_table(snd_mixer_eid_t *list, int count, snd_mixer_weight_entry_t *table);
|
||||
void snd_mixer_sort_gid_name_index(snd_mixer_gid_t *list, int count);
|
||||
void snd_mixer_sort_gid_table(snd_mixer_gid_t *list, int count, snd_mixer_weight_entry_t *table);
|
||||
snd_mixer_weight_entry_t *snd_mixer_default_weights;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue