aboutsummaryrefslogtreecommitdiff
path: root/hosts/herra/audio.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-04-29 15:14:21 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-04-29 15:14:21 +0200
commit8f1dd62736fcb672fe2c0c2eff7de9df7692e77b (patch)
tree7700ee5ac7ef6873ab3c6081ada5d1f45be26a4e /hosts/herra/audio.nix
parent0aa9c299facc6e784354077c5d8890e923c97472 (diff)
parentcdab6b5748e60e424f3a81e91ce38034adb6867c (diff)
Merge branch 'main' of cgit:/srv/git/NixOS-config
Diffstat (limited to 'hosts/herra/audio.nix')
-rw-r--r--hosts/herra/audio.nix58
1 files changed, 29 insertions, 29 deletions
diff --git a/hosts/herra/audio.nix b/hosts/herra/audio.nix
index 17bdcbc..2805547 100644
--- a/hosts/herra/audio.nix
+++ b/hosts/herra/audio.nix
@@ -10,34 +10,34 @@
# Lower audio latency
# TODO: Every setup is different, and a lot of factors determine your final latency, like CPU speed, RT/PREEMPTIVE kernels and soundcards supporting different audio formats. That's why 32/48000 isn't always a value that's going to work for everyone. The best way to get everything working is to keep increasing the quant value until you get no crackles (underruns) or until you get audio again (in case there wasn't any). This won't guarantee the lowest possible latency, but will provide a decent one paired with stable audio.
- extraConfig = {
- pipewire."92-low-latency" = {
- "context.properties" = {
- "default.clock.rate" = 48000;
- "default.clock.quantum" = 32;
- "default.clock.min-quantum" = 32;
- "default.clock.max-quantum" = 32; # Maybe set this to a max of 128 or 256 (as advised by Jade)
- };
- };
-
- pipewire-pulse."92-low-latency" = {
- 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"; # Maybe set this to a max of 128 or 256 (as advised by Jade)
- };
- }
- ];
- stream.properties = {
- node.latency = "32/48000";
- resample.quality = 1;
- };
- };
- };
+ # extraConfig = {
+ # pipewire."92-low-latency" = {
+ # "context.properties" = {
+ # "default.clock.rate" = 48000;
+ # "default.clock.quantum" = 128;
+ # "default.clock.min-quantum" = 32;
+ # "default.clock.max-quantum" = 256; # Maybe set this to a max of 128 or 256 (as advised by Jade)
+ # };
+ # };
+ #
+ # pipewire-pulse."92-low-latency" = {
+ # 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 = "256/48000"; # Maybe set this to a max of 128 or 256 (as advised by Jade)
+ # };
+ # }
+ # ];
+ # stream.properties = {
+ # node.latency = "32/48000";
+ # resample.quality = 1;
+ # };
+ # };
+ # };
};
}