write Jamulus ini file

This commit is contained in:
Volker Fischer 2019-09-23 19:34:12 +02:00
parent d5d17c8b2a
commit 068424ee14

View file

@ -65,6 +65,12 @@ make -j${NCORES}
ADEVICE=$(aplay -l|grep "USB Audio"|head -1|cut -d' ' -f3)
echo "Using USB audio device: ${ADEVICE}"
# write Jamulus ini file for setting the client name
INIFILE="Jamulus.ini"
NAME64=$(echo -n "Raspi $(hostname)"|base64)
echo -e "<client>\n <name_base64>${NAME64}</name_base64>\n</client>" > ${INIFILE}
mv ${INIFILE} ~/.config/Jamulus
# start Jack2 and Jamulus in headless mode
export LD_LIBRARY_PATH="distributions/${OPUS}/.libs:distributions/jack2/build:distributions/jack2/build/common"
distributions/jack2/build/jackd -P70 -p16 -t2000 -d alsa -dhw:${ADEVICE} -p 128 -n 3 -r 48000 -s &