# Multimedia
${AGI} jackd patchage
${AGI} pulseaudio-module-jack
+
+if [ ! -f ${HOME}/.pulse/pulsejack.pa ]; then
+ cp /etc/pulse/default.pa ${HOME}/.pulse/pulsejack.pa
+fi
+
+if ! grep "load-module module-jack-source" ${HOME}/.pulse/pulsejack.pa 1> /dev/null 2>&1; then
+ cat >> ${HOME}/.pulse/pulsejack.pa << "EOF"
+
+### JACK setup (Hugo Villeneuve)
+load-module module-jack-source
+load-module module-jack-sink
+EOF
+fi
+
sudo adduser $(whoami) audio
# /etc/security/limits.d/audio.conf -> set rtprio from 95 to 99 ???