Created
July 19, 2014 13:17
-
-
Save monomon/7f0ec33e34fee7e18a1f to your computer and use it in GitHub Desktop.
jack detect card from aplay and start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
timeout=6 | |
#card=3,0 | |
# query card number from aplay | |
card=`aplay -l | sed -n '/Komplete/s/card\ \([0-9]\).*device \([0-9]\).*/hw:\1,\2/p'` | |
if [ -z $card ] | |
then | |
echo "Komplete card not found" | |
exit | |
fi | |
echo ">>> Komplete audio card detected: $card" | |
# start clean | |
killall -9 jackd jackdbus | |
# start jack | |
# start through dbus interface | |
# use configuration in /home/recencyeffect/.config/jack/conf.xml | |
echo ">>> starting jack" | |
jack_control dps device $card | |
jack_control dpr capture | |
jack_control dpr playback | |
jack_control start | |
sleep $timeout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment