From a2eea2f6f7edb6574cf24bc8257cc364d6026f6c Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 15 May 2024 09:29:49 +0200 Subject: [PATCH] multimedia: wireplumber: try to prevent stuttering during playback --- .../wireplumber.conf.d/50-alsa-config.conf | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 multimedia/wireplumber/wireplumber.conf.d/50-alsa-config.conf 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 index 0000000..c608105 --- /dev/null +++ b/multimedia/wireplumber/wireplumber.conf.d/50-alsa-config.conf @@ -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 + } + } + } +] -- 2.49.1