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
This commit is contained in:
frahaase
2016-08-12 18:23:18 +02:00
committed by George Joseph
parent 9ad1df71b3
commit 094c26aa68
21 changed files with 52186 additions and 178 deletions

40
configure vendored
View File

@@ -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"