mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
add new API pa_channel_map_init_extend() to synthesize a channel map if noone is known
This commit is contained in:
parent
b95cf52030
commit
132e73b2ef
4 changed files with 43 additions and 3 deletions
|
|
@ -20,12 +20,15 @@ int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char *argv[]) {
|
|||
|
||||
fprintf(stderr, "map: <%s>\n", pa_channel_map_snprint(cm, sizeof(cm), &map));
|
||||
|
||||
pa_channel_map_init_extend(&map, 14, PA_CHANNEL_MAP_ALSA);
|
||||
|
||||
fprintf(stderr, "map: <%s>\n", pa_channel_map_snprint(cm, sizeof(cm), &map));
|
||||
|
||||
pa_channel_map_parse(&map2, cm);
|
||||
|
||||
assert(pa_channel_map_equal(&map, &map2));
|
||||
|
||||
pa_channel_map_parse(&map2, "left,test");
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue