Commit d4a02fac authored by Ronald van Engelen's avatar Ronald van Engelen

fixed situation with non-working pulseaudio setup

parent 995fc124
......@@ -29,7 +29,7 @@
LANG=C
APP_NAME_AC="alsa-capabilities"
APP_VERSION="0.9.6"
APP_VERSION="0.9.7"
APP_INFO_URL="https://lacocina.nl/detect-alsa-output-capabilities"
## set DEBUG to a non empty value to display internal program flow to
......@@ -1294,8 +1294,10 @@ function return_alsa_interface() {
CMD_PASUSPENDER=$(type -p pasuspender)
CMD_APLAY="$(type -p aplay)" || \
command_not_found "aplay" "alsa-utils"
if [[ "${CMD_PASUSPENDER}x" != "x" ]]; then
CMD_APLAY="${CMD_PASUSPENDER} -- ${CMD_APLAY}"
if [[ "${CMD_PASUSPENDER}x" != "x" ]]; then
if ${CMD_PASUSPENDER} -- aplay -l 2>&1 1>/dev/null; then
CMD_APLAY="${CMD_PASUSPENDER} -- ${CMD_APLAY}"
fi
fi
# shellcheck disable=SC2181
if [[ $? -ne 0 ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment