From bf66a3b2362093dbcc3a35dffe4d6bea2a896c67 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 17 Aug 2021 20:05:19 +0200 Subject: [PATCH] pulse-server: use NODE_RATE to suggest a graph rate When the rate is in the allowed rates and the graph is idle, it will switch to the new rate. --- src/modules/module-protocol-pulse/pulse-server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index 5cf6b438b..5bdcb8382 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -1440,6 +1440,7 @@ static int do_create_playback_stream(struct client *client, uint32_t command, ui impl, format_id2name(ss.format), ss.rate, ss.channels); } + pw_properties_setf(props, PW_KEY_NODE_RATE, "1/%u", ss.rate); } if (m->offset != m->length) @@ -1679,6 +1680,7 @@ static int do_create_record_stream(struct client *client, uint32_t command, uint impl, format_id2name(ss.format), ss.rate, ss.channels); } + pw_properties_setf(props, PW_KEY_NODE_RATE, "1/%u", ss.rate); } if (m->offset != m->length) goto error_protocol;