From c8075804b11d32941940a7ef2776064883678442 Mon Sep 17 00:00:00 2001 From: NullBite Date: Tue, 25 Feb 2025 15:41:48 -0500 Subject: [PATCH] system(sound): set clock quantum --- system/hardware/sound.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system/hardware/sound.nix b/system/hardware/sound.nix index d3aa0b2..ddbf648 100644 --- a/system/hardware/sound.nix +++ b/system/hardware/sound.nix @@ -26,6 +26,15 @@ in alsa.support32Bit = mkDefault config.services.pipewire.alsa.enable; pulse.enable = mkDefault true; jack.enable = mkDefault true; + extraConfig.pipewire = { + # this should fix the extreme audio crackling in WINE + # note: this increases audio latency to 960/48000 (20ms) + "10-clock-config" = { + "context.properties" = { + "default.clock.min-quantum" = 960; + }; + }; + }; }; environment.systemPackages = with pkgs; [