loop2jack 605 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. # script loop2jack, located in /usr/local/bin
  3. # loop client creation
  4. /usr/bin/alsa_out -r 48000 -p1204 -j ploop -dploop -q 2 2>&1 1> /dev/null &
  5. sleep 2
  6. /usr/bin/alsa_in -r 48000 -p1024 -j cloop -dcloop -q 2 2>&1 1> /dev/null &
  7. # give it some time before connecting to system ports
  8. sleep 3
  9. # cloop ports -> jack output ports
  10. jack_connect cloop:capture_1 system:playback_1
  11. jack_connect cloop:capture_2 system:playback_2
  12. # system microphone (RME analog input 3) to "ploop" ports
  13. jack_connect system:capture_3 ploop:playback_1
  14. jack_connect system:capture_3 ploop:playback_2
  15. # done
  16. exit 0