fix Jamulus compilation issue and set audio realtime rights
This commit is contained in:
parent
6f78c100ca
commit
87e57b5c36
1 changed files with 9 additions and 1 deletions
|
@ -43,6 +43,14 @@ else
|
||||||
cp build/common/*.so build/jack
|
cp build/common/*.so build/jack
|
||||||
cp build/example-clients/*.so build/jack
|
cp build/example-clients/*.so build/jack
|
||||||
cd ..
|
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
|
fi
|
||||||
|
|
||||||
# optional: FluidSynth synthesizer
|
# optional: FluidSynth synthesizer
|
||||||
|
@ -66,7 +74,7 @@ fi
|
||||||
|
|
||||||
# compile Jamulus with external Opus library
|
# compile Jamulus with external Opus library
|
||||||
cd ..
|
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}
|
make -j${NCORES}
|
||||||
|
|
||||||
# get first USB audio sound card device
|
# get first USB audio sound card device
|
||||||
|
|
Loading…
Add table
Reference in a new issue