From ccc098d379d566e800ee98ea187637bcf249732d Mon Sep 17 00:00:00 2001 From: teutat3s Date: Fri, 19 Apr 2024 16:55:32 +0200 Subject: [PATCH] audio: more allowed rates for pipewire, 44100 + 48000 --- modules/audio/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/audio/default.nix b/modules/audio/default.nix index f3ce232a..555ac53d 100644 --- a/modules/audio/default.nix +++ b/modules/audio/default.nix @@ -30,10 +30,22 @@ in { # rtkit is optional but recommended security.rtkit.enable = true; + services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; + # https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Config-PipeWire#setting-sample-rates + extraConfig.pipewire = { + "10-clock-rate" = { + "context.properties" = { + default = { + "clock.rate" = 48000; # Pipewire default + "clock.allowed-rates" = [ 44100 48000 ]; + }; + }; + }; + }; }; }