summary refs log tree commit diff
diff options
context:
space:
mode:
authorgnidorah <gnidorah@users.noreply.github.com>2019-06-09 12:40:22 +0300
committerAristid Breitkreuz <aristidb@gmail.com>2019-06-09 11:40:22 +0200
commitfe01afae42ee4c7ff41450e961700a36d9541fc8 (patch)
treeabafbd23c10298e2e11af288e0c3b11652b5e0a0
parentf1c31bdd62b3d1277d603d0b801040855f4711e0 (diff)
downloadnixpkgs-fe01afae42ee4c7ff41450e961700a36d9541fc8.tar
nixpkgs-fe01afae42ee4c7ff41450e961700a36d9541fc8.tar.gz
nixpkgs-fe01afae42ee4c7ff41450e961700a36d9541fc8.tar.bz2
nixpkgs-fe01afae42ee4c7ff41450e961700a36d9541fc8.tar.lz
nixpkgs-fe01afae42ee4c7ff41450e961700a36d9541fc8.tar.xz
nixpkgs-fe01afae42ee4c7ff41450e961700a36d9541fc8.tar.zst
nixpkgs-fe01afae42ee4c7ff41450e961700a36d9541fc8.zip
nixos/jack: option to adjust dmix buffering (#62854)
-rw-r--r--nixos/modules/services/audio/jack.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/modules/services/audio/jack.nix b/nixos/modules/services/audio/jack.nix
index 1364abd4044..aa3351f401a 100644
--- a/nixos/modules/services/audio/jack.nix
+++ b/nixos/modules/services/audio/jack.nix
@@ -98,6 +98,20 @@ in {
           '';
         };
 
+        dmixConfig = mkOption {
+          type = types.lines;
+          default = "";
+          example = ''
+            period_size 2048
+            periods 2
+          '';
+          description = ''
+            For music production software that still doesn't support JACK natively you
+            would like to put buffer/period adjustments here
+            to decrease dmix device latency.
+          '';
+        };
+
         session = mkOption {
           type = types.lines;
           description = ''
@@ -150,6 +164,7 @@ in {
           ipc_key 219345
           slave {
             pcm loophw00
+            ${cfg.loopback.dmixConfig}
           }
         }
         pcm.asoftvol {