mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
jack: add PIPEWIRE_RATE env variable
So that you can make pipewire switch samplerates.
This commit is contained in:
parent
888716a871
commit
ac919e2a10
2 changed files with 10 additions and 2 deletions
|
|
@ -3183,6 +3183,8 @@ jack_client_t * jack_client_open (const char *client_name,
|
|||
|
||||
if ((str = getenv("PIPEWIRE_LATENCY")) != NULL)
|
||||
pw_properties_set(client->props, PW_KEY_NODE_LATENCY, str);
|
||||
if ((str = getenv("PIPEWIRE_RATE")) != NULL)
|
||||
pw_properties_set(client->props, PW_KEY_NODE_RATE, str);
|
||||
if ((str = pw_properties_get(client->props, PW_KEY_NODE_LATENCY)) != NULL) {
|
||||
uint32_t num, denom;
|
||||
if (sscanf(str, "%u/%u", &num, &denom) == 2 && denom != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue