aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-12-29 07:51:15 -0800
committerChris Robinson <[email protected]>2021-12-29 07:51:15 -0800
commit7c4d2634069f38cebb35e747f2ecbe6106e82e23 (patch)
treea10770462b3f81ea08cc03aeeb3831ea8a7b0ef5
parent5f4690a1b0a00add4cfe5e0376b64a87582afe95 (diff)
Set the node rate for the pipewire capture stream too
-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 3dbe66cf..4a57251b 100644
--- a/alc/backends/pipewire.cpp
+++ b/alc/backends/pipewire.cpp
@@ -1709,6 +1709,7 @@ void PipeWireCapture::open(const char *name)
*/
pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u", (mDevice->Frequency+25) / 50,
mDevice->Frequency);
+ pw_properties_setf(props, PW_KEY_NODE_RATE, "1/%u", mDevice->Frequency);
MainloopUniqueLock plock{mLoop};
static constexpr pw_stream_events streamEvents{CreateEvents()};