summaryrefslogtreecommitdiff
path: root/Jcl
diff options
context:
space:
mode:
authorBakedSnake <gilferrandm@gmail.com>2021-02-02 22:40:08 +0100
committerBakedSnake <gilferrandm@gmail.com>2021-02-02 22:40:08 +0100
commit0b5ec766323a80aa27f22680091ce4bcfeb0b74d (patch)
tree94c2f8c30391b717d28705101f375460997ba1ba /Jcl
initial commit
Diffstat (limited to 'Jcl')
-rwxr-xr-xJcl34
1 files changed, 34 insertions, 0 deletions
diff --git a/Jcl b/Jcl
new file mode 100755
index 0000000..2a29a39
--- /dev/null
+++ b/Jcl
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+builtin() {
+ pulseaudio --kill
+ jack_control stop
+ jack_control start
+ jack_control ds alsa
+ jack_control dps device hw:PCH
+ jack_control dps rate 44100
+ jack_control dps nperiods 2
+ jack_control dps period 1024
+}
+
+ua() {
+ pulseaudio --kill
+ jack_control stop
+ jack_control start
+ jack_control ds alsa
+ jack_control dps device hw:1
+ jack_control dps rate 44100
+ jack_control dps nperiods 3
+ jack_control dps period 1024
+}
+
+stop() {
+ jack_control stop
+ pulseaudio --start
+}
+
+case "$1" in
+ builtin) builtin ;;
+ ua) ua ;;
+ stop) stop ;;
+esac