From bcbdaf6b4784d552ce5e9875e6e06005d54f980d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 17 Oct 2022 11:34:42 +0200 Subject: gaming: fix audio buffer underruns --- system/settings/gaming.nix | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'system') 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" -- cgit 1.4.1