sink, source: Add API to change channel count

This makes this part symmetrical with the rest of the sample spec, and
will be useful when we implement switching channel count in a sink.
This commit is contained in:
Arun Raghavan 2022-01-12 13:22:34 -05:00
parent f9d139c3bc
commit 4693028b9b
4 changed files with 38 additions and 0 deletions

View file

@ -450,6 +450,7 @@ pa_idxset* pa_source_check_formats(pa_source *s, pa_idxset *in_formats);
void pa_source_set_sample_format(pa_source *s, pa_sample_format_t format);
void pa_source_set_sample_rate(pa_source *s, uint32_t rate);
void pa_source_set_channels(pa_source *s, uint8_t channels);
void pa_source_set_channel_map(pa_source *s, pa_channel_map *map);
/*** To be called exclusively by the source driver, from IO context */