From 98485a873b3717624488aa45b061edd041204455 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 8 Oct 2020 10:17:11 -0400 Subject: [PATCH] fluidsynth silent audio on startup fix --- larbs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/larbs.sh b/larbs.sh index 3108140..da39c9e 100644 --- a/larbs.sh +++ b/larbs.sh @@ -219,6 +219,10 @@ sudo -u "$name" mkdir -p "/home/$name/.cache/zsh/" # dbus UUID must be generated for Artix runit. dbus-uuidgen > /var/lib/dbus/machine-id +# Fix fluidsynth/pulseaudio issue. +grep -q "OTHER_OPTS='-a pulseaudio -m alsa_seq -r 48000'" /etc/conf.d/fluidsynth || + echo "OTHER_OPTS='-a pulseaudio -m alsa_seq -r 48000'" >> /etc/conf.d/fluidsynth + # Start/restart PulseAudio. killall pulseaudio; sudo -u "$name" pulseaudio --start