From 87e57b5c365c8e6e6ac04971ac75b422cd47172a Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sat, 28 Sep 2019 08:30:04 +0100 Subject: [PATCH] fix Jamulus compilation issue and set audio realtime rights --- distributions/raspijamulus.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/distributions/raspijamulus.sh b/distributions/raspijamulus.sh index 57973475..ea75e8ff 100755 --- a/distributions/raspijamulus.sh +++ b/distributions/raspijamulus.sh @@ -43,6 +43,14 @@ else cp build/common/*.so build/jack cp build/example-clients/*.so build/jack cd .. + + # give audio group rights to do realtime + if grep -Fq "@audio" /etc/security/limits.conf; then + echo "audio group already has realtime rights" + else + sudo sh -c 'echo "@audio - rtprio 95" >> /etc/security/limits.conf' + sudo sh -c 'echo "@audio - memlock unlimited" >> /etc/security/limits.conf' + fi fi # optional: FluidSynth synthesizer @@ -66,7 +74,7 @@ fi # compile Jamulus with external Opus library cd .. -qmake "CONFIG+=opus_shared_lib" "INCLUDEPATH+=distributions/${OPUS}/include" "QMAKE_LIBDIR+=distributions/${OPUS}/.libs" "INCLUDEPATH+=distributions/jack2/common" Jamulus.pro +qmake "CONFIG+=opus_shared_lib" "INCLUDEPATH+=distributions/${OPUS}/include" "QMAKE_LIBDIR+=distributions/${OPUS}/.libs" "INCLUDEPATH+=distributions/jack2/common" "QMAKE_LIBDIR+=distributions/jack2/build/common" Jamulus.pro make -j${NCORES} # get first USB audio sound card device