mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 08:37:30 +09:00
Enable ALSA support by default on Linux.
This will enable PulseAudio by default with a run-time fallback to ALSA (like Firefox <52). This resolves #115. PulseAudio will remain enabled by default -- if at runtime it's not available, it will fall back to ALSA. Building the tree will still require libpulse to be installed, unless using --disable-pulseaudio.
This commit is contained in:
parent
4f06bfcdca
commit
ed463cec3e
1 changed files with 8 additions and 3 deletions
|
|
@ -3215,15 +3215,20 @@ dnl ==================================
|
||||||
dnl = Check alsa availability on Linux
|
dnl = Check alsa availability on Linux
|
||||||
dnl ==================================
|
dnl ==================================
|
||||||
|
|
||||||
|
dnl If using Linux, enable the alsa library by default
|
||||||
|
if test "$OS_TARGET" = "Linux"; then
|
||||||
|
MOZ_ALSA=1
|
||||||
|
fi
|
||||||
|
|
||||||
MOZ_ARG_ENABLE_BOOL(alsa,
|
MOZ_ARG_ENABLE_BOOL(alsa,
|
||||||
[ --enable-alsa Enable Alsa support],
|
[ --enable-alsa Enable Alsa support (default on Linux)],
|
||||||
MOZ_ALSA=1,
|
MOZ_ALSA=1,
|
||||||
MOZ_ALSA=)
|
MOZ_ALSA=)
|
||||||
|
|
||||||
if test -n "$MOZ_ALSA"; then
|
if test -n "$MOZ_ALSA"; then
|
||||||
PKG_CHECK_MODULES(MOZ_ALSA, alsa, ,
|
PKG_CHECK_MODULES(MOZ_ALSA, alsa, ,
|
||||||
[echo "$MOZ_ALSA_PKG_ERRORS"
|
[echo "$MOZ_ALSA_PKG_ERRORS"
|
||||||
AC_MSG_ERROR([Need alsa for audio output on Linux. (On Ubuntu, you might try installing the package libasound2-dev.)])])
|
AC_MSG_ERROR([You need ALSA for audio output on Linux.])])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(MOZ_ALSA)
|
AC_SUBST(MOZ_ALSA)
|
||||||
|
|
@ -3251,7 +3256,7 @@ if test -n "$MOZ_PULSEAUDIO"; then
|
||||||
if test -z "$gonkdir"; then
|
if test -z "$gonkdir"; then
|
||||||
PKG_CHECK_MODULES(MOZ_PULSEAUDIO, libpulse, ,
|
PKG_CHECK_MODULES(MOZ_PULSEAUDIO, libpulse, ,
|
||||||
[echo "$MOZ_PULSEAUDIO_PKG_ERRORS"
|
[echo "$MOZ_PULSEAUDIO_PKG_ERRORS"
|
||||||
AC_MSG_ERROR([pulseaudio audio backend requires libpulse development package])])
|
AC_MSG_ERROR([Building pulseaudio audio backend requires libpulse development package])])
|
||||||
else
|
else
|
||||||
MOZ_PULSEAUDIO_CFLAGS="-I$gonkdir/external/pulseaudio/pulseaudio/src"
|
MOZ_PULSEAUDIO_CFLAGS="-I$gonkdir/external/pulseaudio/pulseaudio/src"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue