mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
impl-port: add port.group property
Can be used to group ports together. Mostly because they are all from the same stream and split into multiple ports by audioconvert/adapter. Also useful for the alsa sequence to group client ports together. Also interesting when pw-filter would be able to handle streams in the future to find out what ports belong to what streams.
This commit is contained in:
parent
54c3fa06ed
commit
9d1d1fcbef
13 changed files with 62 additions and 23 deletions
|
|
@ -3758,7 +3758,10 @@ void spa_alsa_emit_port_info(struct state *state, bool full)
|
|||
state->port_info.change_mask = state->port_info_all;
|
||||
if (state->port_info.change_mask) {
|
||||
uint32_t i;
|
||||
|
||||
static const struct spa_dict_item info_items[] = {
|
||||
{ SPA_KEY_PORT_GROUP, "stream.0" },
|
||||
};
|
||||
state->port_info.props = &SPA_DICT_INIT_ARRAY(info_items);
|
||||
if (state->port_info.change_mask & SPA_PORT_CHANGE_MASK_PARAMS) {
|
||||
for (i = 0; i < state->port_info.n_params; i++) {
|
||||
if (state->port_params[i].user > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue