aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/fw113
-rw-r--r--user/jack@.service15
2 files changed, 28 insertions, 0 deletions
diff --git a/config/fw1 b/config/fw1
new file mode 100644
index 0000000..f597ba6
--- /dev/null
+++ b/config/fw1
@@ -0,0 +1,13 @@
+# Sample configuration file for a JACK systemd --user service, using a firewire device
+NAME="default"
+DRIVER="firewire"
+DEVICE="/dev/fw1"
+NOMLOCK=""
+REALTIME="-R"
+PORTMAX=512
+UNLOCK="-u"
+VERBOSE="-v"
+DRIVER_SETTINGS="\
+ -n 3 \
+ -p 256\
+ -r 48000"
diff --git a/user/jack@.service b/user/jack@.service
new file mode 100644
index 0000000..9d4477a
--- /dev/null
+++ b/user/jack@.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=JACK Audio
+After=sound.target local-fs.target
+
+[Service]
+EnvironmentFile=-/etc/conf.d/%i
+EnvironmentFile=-%h/.config/jack/%i
+ExecStart=/usr/bin/jackd -n $NAME $REALTIME -p $PORTMAX -d $DRIVER -d $DEVICE $DRIVER_SETTINGS
+CPUSchedulingPolicy=rr
+CPUSchedulingPriority=70
+LimitRTPRIO=71
+LimitRTTIME=-1
+
+[Install]
+WantedBy=default.target