mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
node: remove node state
Remove the node state. The state of the node is based on the state of the ports, which can be derived directly from calling the port methods. Track this state in the Port instead. Add a mixer module that puts a mixer in from of audio sinks. This allows multiple clients to play on one sink (still has some bugs). do some fixes in the mixer and the scheduler to make this work.
This commit is contained in:
parent
28389e05f3
commit
d3682067fa
30 changed files with 618 additions and 509 deletions
|
|
@ -428,16 +428,16 @@ on_context_data (SpaSource *source,
|
|||
continue;
|
||||
}
|
||||
if (opcode >= proxy->iface->n_events) {
|
||||
pinos_log_error ("context %p: invalid method %u", this, opcode);
|
||||
pinos_log_error ("context %p: invalid method %u for %u", this, opcode, id);
|
||||
continue;
|
||||
}
|
||||
|
||||
demarshal = proxy->iface->events;
|
||||
if (demarshal[opcode]) {
|
||||
if (!demarshal[opcode] (proxy, message, size))
|
||||
pinos_log_error ("context %p: invalid message received %u", this, opcode);
|
||||
pinos_log_error ("context %p: invalid message received %u for %u", this, opcode, id);
|
||||
} else
|
||||
pinos_log_error ("context %p: function %d not implemented", this, opcode);
|
||||
pinos_log_error ("context %p: function %d not implemented on %u", this, opcode, id);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue