fluidsynth silent audio on startup fix

This commit is contained in:
Luke Smith 2020-10-08 10:17:11 -04:00
parent 8222b4cb87
commit 98485a873b
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

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