increased samples to 144@48khz for a final{probably) latency of 3 milliseconds

This commit is contained in:
serenity-F 2024-11-11 17:56:31 +10:00
parent a379d24245
commit 85c3caf63d
No known key found for this signature in database

View file

@ -12,51 +12,49 @@
{
imports = [
#./file.nix
];
security.rtkit.enable = true;
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
## Uncomment if ypu(g.) want to use JACK applications
#jack.enable = true;
pulse.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
## If you(g.) want to use JACK applications, uncomment this.
#jack.enable = true;
extraConfig = {
pipewire."92-low-latency" = {
"context.properties" = {
"default.clock.rate" = 48000;
"default.clock.quantum" = 96;
"default.clock.min-quantum" = 96;
"default.clock.max-quantum" = 96;
"default.clock.quantum" = 144;
"default.clock.min-quantum" = 144;
"default.clock.max-quantum" = 144;
};
};
pipewire-pulse."92-low-latency" = {
stream.properties = {
node.latency = "144/48000";
resample.quality = 1;
};
context.modules = [ {
name = "libpipewire-module-protocol-pulse";
args = {
pulse.min.req = "96/48000";
pulse.default.req = "96/48000";
pulse.max.req = "96/48000";
pulse.min.quantum = "96/48000";
pulse.max.quantum = "96/48000";
pulse.min.req = "144/48000";
pulse.default.req = "144/48000";
pulse.max.req = "144/48000";
pulse.min.quantum = "144/48000";
pulse.max.quantum = "144/48000";
};
} ];
stream.properties = {
node.latency = "96/48000";
resample.quality = 1;
};
};
};
};
}