From 094c26aa689664177e156d17bf5e9ab67c442a53 Mon Sep 17 00:00:00 2001 From: frahaase Date: Fri, 12 Aug 2016 18:23:18 +0200 Subject: Binaural synthesis (confbridge): Adds binaural synthesis to bridge_softmix. Adds binaural synthesis to bridge_softmix (via convolution using libfftw3). Binaural synthesis is conducted at 48kHz. For a conference, only one spatial representation is rendered. The default rendering is applied for mono-capable channels. ASTERISK-26292 Change-Id: Iecdb381b6adc17c961049658678f6219adae1ddf --- configure | 40 +++++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 42a21d7c5..fb13b5620 100755 --- a/configure +++ b/configure @@ -29419,7 +29419,7 @@ if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lfftw3 ${pbxlibdir} -lfftw3 $LIBS" +LIBS="-lfftw3 ${pbxlibdir} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -29461,7 +29461,7 @@ fi # now check for the header. if test "${AST_FFTW3_FOUND}" = "yes"; then - FFTW3_LIB="${pbxlibdir} -lfftw3 -lfftw3" + FFTW3_LIB="${pbxlibdir} -lfftw3 " # if --with-FFTW3=DIR has been specified, use it. if test "x${FFTW3_DIR}" != "x"; then FFTW3_INCLUDE="-I${FFTW3_DIR}/include" @@ -29499,11 +29499,6 @@ _ACEOF fi -if test "$PBX_FFTW3" = "1"; then - -$as_echo "#define HAVE_FFTW 1" >>confdefs.h - -fi if test "x${PBX_SNDFILE}" != "x1" -a "${USE_SNDFILE}" != "no"; then pbxlibdir="" @@ -29528,7 +29523,7 @@ if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lsndfile ${pbxlibdir} -lsndfile $LIBS" +LIBS="-lsndfile ${pbxlibdir} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -29570,7 +29565,7 @@ fi # now check for the header. if test "${AST_SNDFILE_FOUND}" = "yes"; then - SNDFILE_LIB="${pbxlibdir} -lsndfile -lsndfile" + SNDFILE_LIB="${pbxlibdir} -lsndfile " # if --with-SNDFILE=DIR has been specified, use it. if test "x${SNDFILE_DIR}" != "x"; then SNDFILE_INCLUDE="-I${SNDFILE_DIR}/include" @@ -29610,8 +29605,6 @@ fi - - if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then if test "xminimum version of SpanDSP" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum version of SpanDSP" >&5 @@ -36253,6 +36246,31 @@ else touch makeopts.acbak fi +# conf_bridge (binaural rendering): check if HRIRs are available +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bridges/bridge_softmix/include/hrirs.h" >&5 +$as_echo_n "checking for bridges/bridge_softmix/include/hrirs.h... " >&6; } +if ${ac_cv_file_bridges_bridge_softmix_include_hrirs_h+:} false; then : + $as_echo_n "(cached) " >&6 +else + test "$cross_compiling" = yes && + as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 +if test -r "bridges/bridge_softmix/include/hrirs.h"; then + ac_cv_file_bridges_bridge_softmix_include_hrirs_h=yes +else + ac_cv_file_bridges_bridge_softmix_include_hrirs_h=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_bridges_bridge_softmix_include_hrirs_h" >&5 +$as_echo "$ac_cv_file_bridges_bridge_softmix_include_hrirs_h" >&6; } +if test "x$ac_cv_file_bridges_bridge_softmix_include_hrirs_h" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_BRIDGES_BRIDGE_SOFTMIX_INCLUDE_HRIRS_H 1 +_ACEOF + +fi + + ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts" -- cgit v1.2.3