]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
multimedia: wireplumber: try to prevent stuttering during playback
authorSimon Ruderich <simon@ruderich.org>
Wed, 15 May 2024 07:29:49 +0000 (09:29 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 15 May 2024 07:29:49 +0000 (09:29 +0200)
multimedia/wireplumber/wireplumber.conf.d/50-alsa-config.conf [new file with mode: 0644]

diff --git a/multimedia/wireplumber/wireplumber.conf.d/50-alsa-config.conf b/multimedia/wireplumber/wireplumber.conf.d/50-alsa-config.conf
new file mode 100644 (file)
index 0000000..c608105
--- /dev/null
@@ -0,0 +1,24 @@
+# Extra configuration file for wireplumber
+
+# SPDX-License-Identifier: GPL-3.0-or-later
+# Copyright (C) 2024  Simon Ruderich
+
+
+# Try to prevent stuttering during audio playback; taken from pipewire FAQ
+monitor.alsa.rules = [
+  {
+    matches = [
+      # This matches the value of the 'node.name' property of the node.
+      {
+        node.name = "~alsa_output.*"
+      }
+    ]
+    actions = {
+      # Apply all the desired node specific settings here.
+      update-props = {
+        api.alsa.period-size   = 1024
+        api.alsa.headroom      = 8192
+      }
+    }
+  }
+]