qjackctl/qjackctl-loop2jack

22 lines
594 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
# script loop2jack, located in /usr/local/bin
# loop client creation
/usr/bin/alsa_out -j alsa_out -d softvol_out -q 1 2>&1 1> /dev/null &
/usr/bin/alsa_in -j alsa_in -d softvol_in -q 1 2>&1 1> /dev/null &
# give it some time before connecting to system ports
sleep 1
# cloop ports -> jack output ports
jack_connect alsa_in:capture_1 system:playback_1
jack_connect alsa_in:capture_2 system:playback_2
# system microphone (RME analog input 3) to "ploop" ports
jack_connect system:capture_3 alsa_out:playback_1
jack_connect system:capture_3 alsa_out:playback_2
# done
exit 0