From 72bdc3844dc6f2678d75bb7ef5db57cde56eb234 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Thu, 7 Nov 2024 17:51:53 +1000 Subject: [PATCH] increased quantum value to deal with crackles/feedback --- core/audio.nix | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/core/audio.nix b/core/audio.nix index 16bffb8..e0d4d6c 100644 --- a/core/audio.nix +++ b/core/audio.nix @@ -17,29 +17,25 @@ security.rtkit.enable = true; - #sound.enable = false; hardware.pulseaudio.enable = false; services.pipewire = { enable = true; + pulse.enable = true; alsa = { enable = true; support32Bit = true; }; - jack = { - enable = false; - }; - pulse = { - enable = true; - }; + ## If you(g.) want to use JACK applications, uncomment this. + #jack.enable = true; extraConfig = { pipewire."92-low-latency" = { "context.properties" = { "default.clock.rate" = 48000; - "default.clock.quantum" = 32; - "default.clock.min-quantum" = 32; - "default.clock.max-quantum" = 32; + "default.clock.quantum" = 48; + "default.clock.min-quantum" = 48; + "default.clock.max-quantum" = 48; }; }; @@ -47,15 +43,15 @@ context.modules = [ { name = "libpipewire-module-protocol-pulse"; args = { - pulse.min.req = "32/48000"; - pulse.default.req = "32/48000"; - pulse.max.req = "32/48000"; - pulse.min.quantum = "32/48000"; - pulse.max.quantum = "32/48000"; + pulse.min.req = "48/48000"; + pulse.default.req = "48/48000"; + pulse.max.req = "48/48000"; + pulse.min.quantum = "48/48000"; + pulse.max.quantum = "48/48000"; }; } ]; stream.properties = { - node.latency = "32/48000"; + node.latency = "48/48000"; resample.quality = 1; }; };