#---------------- start -------------------- # !/bin/sh # script loop2jack, located in /usr/local/bin # start idjc /usr/local/bin/idjc & # give it a chance to start sleep 2 # loop client creation set_rlimits /usr/bin/alsa_out -j ploop -dploop -q 1 2>&1 1> /dev/null & set_rlimits /usr/bin/alsa_in -j cloop -dcloop -q 1 2>&1 1> /dev/null & # The following line is specific to my setup only #but I shall leave it here for refference. # It sets up a jack plug for my USB microphone # in the jack connection manager which i can then # plug into IDJC. you can find the name of your USB # mic by using the command arecord -l. # The name of your mic will be the second field of the # revelent audio device. Mine is called mirophone. #set_rlimits /usr/bin/alsa_in -j Microphone -d hw:Microphone -q 1 2>&1> /dev/null & # give it some time before connection to system ports sleep 1 # cloop ports -> jack -> idjc voip input ports jack_connect cloop:capture_1 idjc_default:voip_in_l jack_connect cloop:capture_2 idjc_default:voip_in_r #jack_connect Microphone:capture_1 idjc_default:ch_in_1 # done exit 0 #------------ end --------------------