only use included alsa mod on pulseaudio-equipped systems (e.g. not stock raspbian)

This commit is contained in:
lif 2020-03-24 23:34:23 -07:00
parent e6c2c994b8
commit 736fe6ecc6
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,7 @@ pcm.!default {
type pulse
}
# 32-bit pulse alsa module
pcm_type.pulse {
lib "lib/alsa-lib/libasound_module_pcm_pulse.so"
}

4
run.sh
View File

@ -9,7 +9,9 @@ fi
export MOZ_PLUGIN_PATH=$dir/lib/plugins/
export XDG_CONFIG_HOME=$dir/etc/
export ALSA_CONFIG_PATH=$dir/etc/asound.conf
if pactl stat &> /dev/null ; then
export ALSA_CONFIG_PATH=$dir/etc/asound.conf
fi
cd $dir
scale=${1:-3}