mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
modules: support audio.layout where we can
This commit is contained in:
parent
8ba08f3029
commit
ff0bc22cb1
28 changed files with 116 additions and 7 deletions
|
|
@ -44,6 +44,11 @@ static int avb_set_param(struct state *state, const char *k, const char *s)
|
|||
SPA_N_ELEMENTS(state->default_pos.pos),
|
||||
&state->default_pos.channels);
|
||||
fmt_change++;
|
||||
} else if (spa_streq(k, SPA_KEY_AUDIO_LAYOUT)) {
|
||||
spa_audio_parse_layout(s, state->default_pos.pos,
|
||||
SPA_N_ELEMENTS(state->default_pos.pos),
|
||||
&state->default_pos.channels);
|
||||
fmt_change++;
|
||||
} else if (spa_streq(k, SPA_KEY_AUDIO_ALLOWED_RATES)) {
|
||||
state->n_allowed_rates = spa_avb_parse_rates(state->allowed_rates,
|
||||
MAX_RATES, s, strlen(s));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue