summaryrefslogtreecommitdiff
path: root/Jcl
diff options
context:
space:
mode:
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