ok no crackles anymore

This commit is contained in:
jacekpoz 2023-07-21 00:37:48 +02:00
parent bab21249e2
commit 5dee4371d5

View file

@ -109,7 +109,9 @@ in
SYSTEMD_TIMEDATED_NTP_SERVICES = "chronyd.service:systemd-timesyncd.service";
};
etc = {
etc = let
json = pkgs.formats.json {};
in {
"greetd/environments".text = ''
Hyprland
sway
@ -119,11 +121,29 @@ in
"pipewire/pipewire.conf.d/92-low-latency.conf".text = ''
context.properties = {
default.clock.rate = 48000
default.clock.quantum = 64
default.clock.min-quantum = 64
default.clock.max-quantum = 64
default.clock.quantum = 128
default.clock.min-quantum = 128
default.clock.max-quantum = 128
}
'';
"pipewire/pipewire-pulse.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
context.modules = [
{
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";
};
}
];
stream.properties = {
node.latency = "32/48000";
resample.quality = 1;
};
};
};
};