From 06da341147c168c2fcb90ffe048bb772a702ca28 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Sat, 2 Mar 2024 02:34:41 -0800 Subject: [PATCH] pulse --- extras/gaming.nix | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/extras/gaming.nix b/extras/gaming.nix index 5da359e..d8287da 100644 --- a/extras/gaming.nix +++ b/extras/gaming.nix @@ -73,5 +73,34 @@ # }; # }; # }; - # services.pipewire.extraConfig = {}; + # services.pipewire.enable = false; + services.pipewire.extraConfig = { + pipewire."99-low-latency" = { + context.properties = { + # default.allowed-rates = [] + default.clock.rate = 192000; + default.clock.quantum = 32; + default.clock.min-quantum = 32; + default.clock.max-quantum = 32; + }; + }; + pipewire-pulse."99-low-latency" = { + context.modules = [ + { + name = "libpipewire-module-protocol-pulse"; + args = { + pulse.min.req = "32/44100"; + pulse.default.req = "32/192000"; + pulse.max.req = "32/192000"; + pulse.min.quantum = "32/192000"; + pulse.max.quantum = "32/192000"; + }; + } + ]; + stream.properties = { + node.latency = "32/192000"; + resample.quality = 1; + }; + }; + }; }