From 21bdea776a1fca9f009470c6e5753cf78e208593 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 16 Dec 2021 13:03:13 -0800 Subject: Set the PipeWire stream rate When requesting a non-default rate, this may allow the hardware to run at the requested rate. --- alc/backends/pipewire.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'alc/backends/pipewire.cpp') diff --git a/alc/backends/pipewire.cpp b/alc/backends/pipewire.cpp index 1e60410d..68532cd7 100644 --- a/alc/backends/pipewire.cpp +++ b/alc/backends/pipewire.cpp @@ -1289,6 +1289,7 @@ bool PipeWirePlayback::reset() pw_properties_set(props, PW_KEY_NODE_DESCRIPTION, appname); pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u", mDevice->UpdateSize, mDevice->Frequency); + pw_properties_setf(props, PW_KEY_NODE_RATE, "1/%u", mDevice->Frequency); MainloopUniqueLock plock{mLoop}; /* The stream takes overship of 'props', even in the case of failure. */ -- cgit v1.2.3