summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2022-10-17 11:34:42 +0200
committerAlan Pearce2022-10-17 11:34:42 +0200
commitbcbdaf6b4784d552ce5e9875e6e06005d54f980d (patch)
treeb2b9f1ede3365687b4a676d62e17e435ac241352
parent93481187995c21d32d20b0909be785b30b13899e (diff)
downloadnixfiles-bcbdaf6b4784d552ce5e9875e6e06005d54f980d.tar.lz
nixfiles-bcbdaf6b4784d552ce5e9875e6e06005d54f980d.tar.zst
nixfiles-bcbdaf6b4784d552ce5e9875e6e06005d54f980d.zip
gaming: fix audio buffer underruns
-rw-r--r--system/settings/gaming.nix28
1 files changed, 14 insertions, 14 deletions
diff --git a/system/settings/gaming.nix b/system/settings/gaming.nix
index 3a0c134e..777bd598 100644
--- a/system/settings/gaming.nix
+++ b/system/settings/gaming.nix
@@ -27,10 +27,10 @@
       "link.max-buffers" = 16;
       "log.level" = 2;
       "default.clock.rate" = 44100;
-      "default.clock.allowed_rates" = [44100 48000 88200 96000];
-      "default.clock.quantum" = 32;
-      "default.clock.min-quantum" = 32;
-      "default.clock.max-quantum" = 32;
+      "default.clock.allowed_rates" = [ 44100 48000 88200 96000 ];
+      "default.clock.quantum" = 64;
+      "default.clock.min-quantum" = 64;
+      "default.clock.max-quantum" = 1024;
       "core.daemon" = true;
       "core.name" = "pipewire-0";
     };
@@ -88,20 +88,20 @@
           "rt.time.soft" = 200000;
           "rt.time.hard" = 200000;
         };
-        flags = ["ifexists" "nofail"];
+        flags = [ "ifexists" "nofail" ];
       }
-      {name = "libpipewire-module-protocol-native";}
-      {name = "libpipewire-module-client-node";}
-      {name = "libpipewire-module-adapter";}
-      {name = "libpipewire-module-metadata";}
+      { name = "libpipewire-module-protocol-native"; }
+      { name = "libpipewire-module-client-node"; }
+      { name = "libpipewire-module-adapter"; }
+      { name = "libpipewire-module-metadata"; }
       {
         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" = "128/48000";
+          "pulse.default.req" = "128/48000";
+          "pulse.max.req" = "128/48000";
+          "pulse.min.quantum" = "128/48000";
+          "pulse.max.quantum" = "128/48000";
           "server.address" = [
             "unix:native"
             "tcp:127.0.0.1:4713"