Skip to content

Instantly share code, notes, and snippets.

@monomon
Created July 19, 2014 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monomon/7f0ec33e34fee7e18a1f to your computer and use it in GitHub Desktop.
Save monomon/7f0ec33e34fee7e18a1f to your computer and use it in GitHub Desktop.
jack detect card from aplay and start
#!/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