mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
impl-port: query all params through the mixer
Go through the mixers of the port to get the params. This makes it possible to let the mixer decide on formats, buffers and io areas. Currently, the format is the same on all mixer input and output ports and the buffers are shared on the output port but the idea is to make it possible to have different formats and buffers per link.
This commit is contained in:
parent
abb28e5255
commit
84ed9c0fe9
5 changed files with 58 additions and 35 deletions
|
|
@ -317,9 +317,9 @@ static int add_port_update(struct node_data *data, struct pw_impl_port *port, ui
|
|||
for (idx = 0;;) {
|
||||
spa_pod_dynamic_builder_init(&b, buf, sizeof(buf), 4096);
|
||||
|
||||
res = spa_node_port_enum_params_sync(port->node->node,
|
||||
port->direction, port->port_id,
|
||||
id, &idx, NULL, ¶m, &b.b);
|
||||
res = spa_node_port_enum_params_sync(port->mix,
|
||||
port->direction, SPA_ID_INVALID,
|
||||
id, &idx, NULL, ¶m, &b.b);
|
||||
if (res == 1) {
|
||||
void *p;
|
||||
p = pw_reallocarray(params, n_params + 1, sizeof(struct spa_pod*));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue