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

get rid of pasuspender/pulseaudio; fixes issue #37

parent d4a02fac
......@@ -29,7 +29,7 @@
LANG=C
APP_NAME_AC="alsa-capabilities"
APP_VERSION="0.9.7"
APP_VERSION="0.9.8"
APP_INFO_URL="https://lacocina.nl/detect-alsa-output-capabilities"
## set DEBUG to a non empty value to display internal program flow to
......@@ -325,9 +325,6 @@ function return_output_json() {
}
function fetch_alsa_outputinterfaces() {
## parses each output interface returned by `get_aplay_output'
## after filtering (when the appropriate commandline options are
......@@ -1291,14 +1288,8 @@ function return_alsa_interface() {
set -x
fi
## check if needed commands are available
CMD_PASUSPENDER=$(type -p pasuspender)
CMD_APLAY="$(type -p aplay)" || \
command_not_found "aplay" "alsa-utils"
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
die "The script cannot continue without aplay."
......
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