all repos — nixfiles @ bcbdaf6b4784d552ce5e9875e6e06005d54f980d

System and user configuration, managed by nix and home-manager

gaming: fix audio buffer underruns
Alan Pearce alan@alanpearce.eu
Mon, 17 Oct 2022 11:34:42 +0200
commit

bcbdaf6b4784d552ce5e9875e6e06005d54f980d

parent

93481187995c21d32d20b0909be785b30b13899e

1 files changed, 14 insertions(+), 14 deletions(-)

jump to
M system/settings/gaming.nixsystem/settings/gaming.nix
@@ -27,10 +27,10 @@ "context.properties" = {       "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.prio" = 88;           "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"