keys: add node.link-group property

The node.link-group property marks streams that are internally linked
together in some way. It is used to relate the input and output streams
of some of the module streams.
This commit is contained in:
Wim Taymans 2021-06-29 13:49:55 +02:00
parent 6a0cf77985
commit c4971d17c4
5 changed files with 31 additions and 14 deletions

View file

@ -247,6 +247,7 @@ static void manager_added(void *d, struct pw_manager_object *o)
props = pw_properties_new(NULL, NULL);
pw_properties_set(props, PW_KEY_NODE_TARGET, sink_name);
pw_properties_setf(props, PW_KEY_NODE_GROUP, "combine_sink-%u", data->module->idx);
pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "combine_sink-%u", data->module->idx);
pw_properties_set(props, PW_KEY_NODE_DONT_RECONNECT, "true");
pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
pw_properties_set(props, PW_KEY_NODE_PASSIVE, "true");
@ -330,6 +331,7 @@ static int module_combine_sink_load(struct client *client, struct module *module
pw_properties_set(props, PW_KEY_NODE_DESCRIPTION, data->sink_name);
pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
pw_properties_setf(props, PW_KEY_NODE_GROUP, "combine_sink-%u", data->module->idx);
pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "combine_sink-%u", data->module->idx);
pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
data->sink = pw_stream_new(data->core, data->sink_name, props);