mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
Added libsoxr detection and optional build of soxr resampler backend.
This commit is contained in:
parent
e257fd51f6
commit
6ea00eeb07
2 changed files with 23 additions and 0 deletions
17
configure.ac
17
configure.ac
|
|
@ -1139,6 +1139,21 @@ AS_IF([test "x$with_speex" = "xyes" && test "x$HAVE_SPEEX" = "x0"],
|
||||||
AM_CONDITIONAL([HAVE_SPEEX], [test "x$HAVE_SPEEX" = "x1"])
|
AM_CONDITIONAL([HAVE_SPEEX], [test "x$HAVE_SPEEX" = "x1"])
|
||||||
AS_IF([test "x$HAVE_SPEEX" = "x1"], AC_DEFINE([HAVE_SPEEX], 1, [Have speex]))
|
AS_IF([test "x$HAVE_SPEEX" = "x1"], AC_DEFINE([HAVE_SPEEX], 1, [Have speex]))
|
||||||
|
|
||||||
|
#### soxr (optional) ####
|
||||||
|
|
||||||
|
AC_ARG_WITH([soxr],
|
||||||
|
AS_HELP_STRING([--without-soxr],[Omit soxr (resampling)]))
|
||||||
|
|
||||||
|
AS_IF([test "x$with_soxr" != "xno"],
|
||||||
|
[PKG_CHECK_MODULES(LIBSOXR, [ soxr >= 0.1.1 ], HAVE_SOXR=1, HAVE_SOXR=0)],
|
||||||
|
HAVE_SOXR=0)
|
||||||
|
|
||||||
|
AS_IF([test "x$with_soxr" = "xyes" && test "x$HAVE_SOXR" = "x0"],
|
||||||
|
[AC_MSG_ERROR([*** soxr support not found])])
|
||||||
|
|
||||||
|
AM_CONDITIONAL([HAVE_SOXR], [test "x$HAVE_SOXR" = "x1"])
|
||||||
|
AS_IF([test "x$HAVE_SOXR" = "x1"], AC_DEFINE([HAVE_SOXR], 1, [Have soxr]))
|
||||||
|
|
||||||
#### Xen support (optional) ####
|
#### Xen support (optional) ####
|
||||||
|
|
||||||
AC_ARG_ENABLE([xen],
|
AC_ARG_ENABLE([xen],
|
||||||
|
|
@ -1526,6 +1541,7 @@ AS_IF([test "x$HAVE_FFTW" = "x1"], ENABLE_FFTW=yes, ENABLE_FFTW=no)
|
||||||
AS_IF([test "x$HAVE_ORC" = "xyes"], ENABLE_ORC=yes, ENABLE_ORC=no)
|
AS_IF([test "x$HAVE_ORC" = "xyes"], ENABLE_ORC=yes, ENABLE_ORC=no)
|
||||||
AS_IF([test "x$HAVE_ADRIAN_EC" = "x1"], ENABLE_ADRIAN_EC=yes, ENABLE_ADRIAN_EC=no)
|
AS_IF([test "x$HAVE_ADRIAN_EC" = "x1"], ENABLE_ADRIAN_EC=yes, ENABLE_ADRIAN_EC=no)
|
||||||
AS_IF([test "x$HAVE_SPEEX" = "x1"], ENABLE_SPEEX=yes, ENABLE_SPEEX=no)
|
AS_IF([test "x$HAVE_SPEEX" = "x1"], ENABLE_SPEEX=yes, ENABLE_SPEEX=no)
|
||||||
|
AS_IF([test "x$HAVE_SOXR" = "x1"], ENABLE_SOXR=yes, ENABLE_SOXR=no)
|
||||||
AS_IF([test "x$HAVE_WEBRTC" = "x1"], ENABLE_WEBRTC=yes, ENABLE_WEBRTC=no)
|
AS_IF([test "x$HAVE_WEBRTC" = "x1"], ENABLE_WEBRTC=yes, ENABLE_WEBRTC=no)
|
||||||
AS_IF([test "x$HAVE_TDB" = "x1"], ENABLE_TDB=yes, ENABLE_TDB=no)
|
AS_IF([test "x$HAVE_TDB" = "x1"], ENABLE_TDB=yes, ENABLE_TDB=no)
|
||||||
AS_IF([test "x$HAVE_GDBM" = "x1"], ENABLE_GDBM=yes, ENABLE_GDBM=no)
|
AS_IF([test "x$HAVE_GDBM" = "x1"], ENABLE_GDBM=yes, ENABLE_GDBM=no)
|
||||||
|
|
@ -1587,6 +1603,7 @@ echo "
|
||||||
Enable orc: ${ENABLE_ORC}
|
Enable orc: ${ENABLE_ORC}
|
||||||
Enable Adrian echo canceller: ${ENABLE_ADRIAN_EC}
|
Enable Adrian echo canceller: ${ENABLE_ADRIAN_EC}
|
||||||
Enable speex (resampler, AEC): ${ENABLE_SPEEX}
|
Enable speex (resampler, AEC): ${ENABLE_SPEEX}
|
||||||
|
Enable soxr (resampler): ${ENABLE_SOXR}
|
||||||
Enable WebRTC echo canceller: ${ENABLE_WEBRTC}
|
Enable WebRTC echo canceller: ${ENABLE_WEBRTC}
|
||||||
Enable gcov coverage: ${ENABLE_GCOV}
|
Enable gcov coverage: ${ENABLE_GCOV}
|
||||||
Enable unit tests: ${ENABLE_TESTS}
|
Enable unit tests: ${ENABLE_TESTS}
|
||||||
|
|
|
||||||
|
|
@ -1019,6 +1019,12 @@ libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(LIBSPEEX_CFLAGS)
|
||||||
libpulsecore_@PA_MAJORMINOR@_la_LIBADD += $(LIBSPEEX_LIBS)
|
libpulsecore_@PA_MAJORMINOR@_la_LIBADD += $(LIBSPEEX_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if HAVE_SOXR
|
||||||
|
libpulsecore_@PA_MAJORMINOR@_la_SOURCES += pulsecore/resampler/soxr.c
|
||||||
|
libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(LIBSOXR_CFLAGS)
|
||||||
|
libpulsecore_@PA_MAJORMINOR@_la_LIBADD += $(LIBSOXR_LIBS)
|
||||||
|
endif
|
||||||
|
|
||||||
if HAVE_LIBSAMPLERATE
|
if HAVE_LIBSAMPLERATE
|
||||||
libpulsecore_@PA_MAJORMINOR@_la_SOURCES += pulsecore/resampler/libsamplerate.c
|
libpulsecore_@PA_MAJORMINOR@_la_SOURCES += pulsecore/resampler/libsamplerate.c
|
||||||
libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(LIBSAMPLERATE_CFLAGS)
|
libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(LIBSAMPLERATE_CFLAGS)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue