mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -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
|
|
@ -952,6 +952,9 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
} else if (spa_streq(k, SPA_KEY_AUDIO_POSITION)) {
|
||||
spa_audio_parse_position_n(s, strlen(s), this->props.pos,
|
||||
SPA_N_ELEMENTS(this->props.pos), &this->props.channels);
|
||||
} else if (spa_streq(k, SPA_KEY_AUDIO_LAYOUT)) {
|
||||
spa_audio_parse_layout(s, this->props.pos,
|
||||
SPA_N_ELEMENTS(this->props.pos), &this->props.channels);
|
||||
} else if (spa_streq(k, "clock.name")) {
|
||||
spa_scnprintf(this->props.clock_name,
|
||||
sizeof(this->props.clock_name),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue