From fdc0751bfbc031ae7fa63b7e06f1d2278437eadb Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Sun, 3 Mar 2024 23:17:20 -0800 Subject: [PATCH] more audio --- extras/gaming.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/extras/gaming.nix b/extras/gaming.nix index 2f7d09e..96af3a5 100644 --- a/extras/gaming.nix +++ b/extras/gaming.nix @@ -40,12 +40,24 @@ services.pipewire.extraConfig = { pipewire."99-low-latency" = { context.properties = { - # default.allowed-rates = [] + default.allowed-rates = [44100 48000 96000]; default.clock.rate = 192000; default.clock.quantum = 32; default.clock.min-quantum = 32; default.clock.max-quantum = 32; }; + context.modules = [ + { + name = "libpipewire-module-rt"; + args = { + nice.level = -12; + rt.prio = 89; + rt.time.soft = 200000; + rt.time.hard = 200000; + }; + flags = ["ifexists nofail"]; + } + ]; }; pipewire-pulse."99-low-latency" = { context.modules = [