mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
PCM: Introduce snd_pcm_chmap_t and snd_pcm_chmap_query_t
Instead of passing ambiguous integer array, define snd_pcm_chmap_t and snd_pcm_chmap_query_t so that user can understand more easily which element is for what. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
48c2c90f19
commit
9c1a0ce72d
15 changed files with 102 additions and 84 deletions
|
|
@ -192,15 +192,15 @@ struct snd_pcm_ioplug_callback {
|
|||
/**
|
||||
* query the channel maps; optional; since v1.0.2
|
||||
*/
|
||||
int **(*query_chmaps)(snd_pcm_ioplug_t *io);
|
||||
snd_pcm_chmap_query_t **(*query_chmaps)(snd_pcm_ioplug_t *io);
|
||||
/**
|
||||
* get the channel map; optional; since v1.0.2
|
||||
*/
|
||||
int *(*get_chmap)(snd_pcm_ioplug_t *io);
|
||||
snd_pcm_chmap_t *(*get_chmap)(snd_pcm_ioplug_t *io);
|
||||
/**
|
||||
* set the channel map; optional; since v1.0.2
|
||||
*/
|
||||
int (*set_chmap)(snd_pcm_ioplug_t *io, const int *map);
|
||||
int (*set_chmap)(snd_pcm_ioplug_t *io, const snd_pcm_chmap_t *map);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue