From 4d09cce1aa194341e6be81bf4ff6f1f8cb6dcf56 Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 18 May 2024 06:47:26 +0000 Subject: [PATCH] calls: fix latency so moby doesnt underrun --- hosts/common/programs/calls.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/common/programs/calls.nix b/hosts/common/programs/calls.nix index a2a25cbe..ca5ac8c2 100644 --- a/hosts/common/programs/calls.nix +++ b/hosts/common/programs/calls.nix @@ -62,7 +62,9 @@ in # add --daemon to avoid showing UI on launch. # note that no matter the flags, it returns to being a daemon whenever the UI is manually closed, # revealed when launched. - command = "env G_MESSAGES_DEBUG=all gnome-calls"; + # default latency is 10ms, which is too low and i get underruns on moby. + # 50ms is copied from dino, not at all tuned. + command = "env G_MESSAGES_DEBUG=all PULSE_LATENCY_MSEC=50 gnome-calls"; }; }; programs.calls = lib.mkIf cfg.enabled {