mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
jack: group all jack nodes in the same application group
Make sure all jack nodes from the same pid are in the same group. It is normally not a problem for different JACK clients to live in different groups and be scheduled by different drivers with different quantum and rate. Some applications (like Carla), however, make multiple clients and expect all of them to use the same quantum and rate. Enforce this by adding all jack clients to the application jack group.
This commit is contained in:
parent
0126663238
commit
c8ef655b3e
1 changed files with 2 additions and 0 deletions
|
|
@ -3361,6 +3361,8 @@ jack_client_t * jack_client_open (const char *client_name,
|
|||
}
|
||||
if (pw_properties_get(client->props, PW_KEY_NODE_NAME) == NULL)
|
||||
pw_properties_set(client->props, PW_KEY_NODE_NAME, client_name);
|
||||
if (pw_properties_get(client->props, PW_KEY_NODE_GROUP) == NULL)
|
||||
pw_properties_setf(client->props, PW_KEY_NODE_GROUP, "jack-%d", getpid());
|
||||
if (pw_properties_get(client->props, PW_KEY_NODE_DESCRIPTION) == NULL)
|
||||
pw_properties_set(client->props, PW_KEY_NODE_DESCRIPTION, client_name);
|
||||
if (pw_properties_get(client->props, PW_KEY_MEDIA_TYPE) == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue