aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-12-16 13:03:13 -0800
committerChris Robinson <[email protected]>2021-12-16 13:03:13 -0800
commit21bdea776a1fca9f009470c6e5753cf78e208593 (patch)
tree18466eeec434c55003e72b20510a432c1e50a7d0 /alc/backends
parentedea2b2a028003a76c4fca5cd6f5b375547d9ecc (diff)
Set the PipeWire stream rate
When requesting a non-default rate, this may allow the hardware to run at the requested rate.
Diffstat (limited to 'alc/backends')
-rw-r--r--alc/backends/pipewire.cpp1
1 files changed, 1 insertions, 0 deletions
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. */