From 3c49eb9654420b19c50d6a2c380ffedd0e0b659e Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Tue, 1 Oct 2019 16:50:47 +0200 Subject: [PATCH] for more than one CPU core use higher audio quality --- distributions/raspijamulus.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/distributions/raspijamulus.sh b/distributions/raspijamulus.sh index 8448b1df..19284111 100755 --- a/distributions/raspijamulus.sh +++ b/distributions/raspijamulus.sh @@ -85,9 +85,15 @@ echo "Using USB audio device: ${ADEVICE}" # write Jamulus ini file for setting the client name and buffer settings JAMULUSINIFILE="Jamulus.ini" NAME64=$(echo "Raspi $(hostname)"|cut -c -15|tr -d $'\n'|base64) -echo -e "\n ${NAME64}" > ${JAMULUSINIFILE} -echo -e " 1\n 3\n 3" >> ${JAMULUSINIFILE} -echo -e " 0\n 0\n" >> ${JAMULUSINIFILE} +if [ "$NCORES" -gt "1" ]; then + echo -e "\n ${NAME64}" > ${JAMULUSINIFILE} + echo -e " 1\n 3\n 3" >> ${JAMULUSINIFILE} + echo -e " 2\n 1\n" >> ${JAMULUSINIFILE} +else + echo -e "\n ${NAME64}" > ${JAMULUSINIFILE} + echo -e " 1\n 3\n 3" >> ${JAMULUSINIFILE} + echo -e " 0\n 0\n" >> ${JAMULUSINIFILE} +fi # taken from "Raspberry Pi and realtime, low-latency audio" homepage at wiki.linuxaudio.org #sudo service triggerhappy stop