]> git.parisson.com Git - telecaster-server.git/commitdiff
manage jackd into vncserver, add JACK_OPTIONS to .env
authorGuillaume Pellerin <yomguy@parisson.com>
Sat, 8 Apr 2023 08:46:11 +0000 (10:46 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sat, 8 Apr 2023 08:46:11 +0000 (10:46 +0200)
src/home/telecaster/.fluxbox/scripts/.env.sample
src/home/telecaster/.fluxbox/scripts/tc_jackd.sh [new file with mode: 0755]
src/home/telecaster/.fluxbox/startup

index b0d79c700df95347b08356fa1c6190818a64f194..3fe4d5a93255e652084834313b7d81a2b07b104a 100644 (file)
@@ -19,3 +19,5 @@ AUDIO_CHANNELS=2
 AUDIO_OPUS_BITRATE=96000
 AUDIO_MP3_QUALITY=4.0
 AUDIO_GAIN=12.0
+
+JACK_OPTIONS="-dalsa -r48000 -p1024 -n3 -Chw:3 -Phw:3"
diff --git a/src/home/telecaster/.fluxbox/scripts/tc_jackd.sh b/src/home/telecaster/.fluxbox/scripts/tc_jackd.sh
new file mode 100755 (executable)
index 0000000..6cefe8e
--- /dev/null
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+set -e
+
+# Audio
+JACK_OPTIONS="-dalsa -r48000 -p1024 -n3 -Chw:3 -Phw:3"
+
+LOCAL_DIR=$(dirname "$0")
+if [ -f $LOCAL_DIR/.env ]; then
+    source $LOCAL_DIR/.env
+fi
+
+# jackd launch
+
+jackd $JACK_OPTIONS
+
index 39d612180b6481ccdc61d05c9f6a33b89fcd1bbd..9ac6941ad33146c6afa73562167e79aa87dedb4d 100644 (file)
@@ -25,6 +25,12 @@ fi
 
 FLUXBOX_DIR=/home/telecaster/.fluxbox
 
+# jackd
+
+$FLUXBOX_DIR/scripts/tc_jackd.sh &
+
+sleep 2
+
 # telecaster
 
 konsole &