gaming: fix audio buffer underruns
Alan Pearce alan@alanpearce.eu
Mon, 17 Oct 2022 11:34:42 +0200
1 files changed, 14 insertions(+), 14 deletions(-)
jump to
M system/settings/gaming.nix → system/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"