fix Jamulus compilation issue and set audio realtime rights

This commit is contained in:
Volker Fischer 2019-09-28 08:30:04 +01:00
parent 6f78c100ca
commit 87e57b5c36

View file

@ -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