<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9289">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bridge_softmix_binaural: Enable FFTW3 in Solaris 11.<br><br>ASTERISK-27939<br><br>Change-Id: Ice5640e08385a64a0a6555deaccd91e86bca154f<br>---<br>M bridges/bridge_softmix/bridge_softmix_binaural.c<br>M configure<br>M configure.ac<br>3 files changed, 14 insertions(+), 14 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/89/9289/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/bridges/bridge_softmix/bridge_softmix_binaural.c b/bridges/bridge_softmix/bridge_softmix_binaural.c<br>index 2a8efd7..091b134 100644<br>--- a/bridges/bridge_softmix/bridge_softmix_binaural.c<br>+++ b/bridges/bridge_softmix/bridge_softmix_binaural.c<br>@@ -193,12 +193,12 @@<br> float *hrir;<br> <br> /* Prepare FFTW. */<br>- channel->fftw_in = fftw_alloc_real(hrtf_len + 1);<br>+ channel->fftw_in = (double *) fftw_malloc(sizeof(double) * hrtf_len + 1);<br> if (channel->fftw_in == NULL) {<br> return -1;<br> }<br> <br>- channel->fftw_out = fftw_alloc_real(hrtf_len + 1);<br>+ channel->fftw_out = (double *) fftw_malloc(sizeof(double) * hrtf_len + 1);<br> if (channel->fftw_out == NULL) {<br> fftw_free(channel->fftw_in);<br> return -1;<br>@@ -239,7 +239,7 @@<br> }<br> <br> fftw_execute(channel->fftw_plan);<br>- channel->hrtf = fftw_alloc_real(hrtf_len);<br>+ channel->hrtf = (double *) fftw_malloc(sizeof(double) * hrtf_len);<br> if (channel->hrtf == NULL) {<br> fftw_free(channel->fftw_in);<br> fftw_free(channel->fftw_out);<br>diff --git a/configure b/configure<br>index b7d3490..ad8ff53 100755<br>--- a/configure<br>+++ b/configure<br>@@ -28142,9 +28142,9 @@<br> <br> ast_ext_lib_check_save_CFLAGS="${CFLAGS}"<br> CFLAGS="${CFLAGS} "<br>- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_alloc_real in -lfftw3" >&5<br>-$as_echo_n "checking for fftw_alloc_real in -lfftw3... " >&6; }<br>-if ${ac_cv_lib_fftw3_fftw_alloc_real+:} false; then :<br>+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5<br>+$as_echo_n "checking for fftw_malloc in -lfftw3... " >&6; }<br>+if ${ac_cv_lib_fftw3_fftw_malloc+:} false; then :<br> $as_echo_n "(cached) " >&6<br> else<br> ac_check_lib_save_LIBS=$LIBS<br>@@ -28158,27 +28158,27 @@<br> #ifdef __cplusplus<br> extern "C"<br> #endif<br>-char fftw_alloc_real ();<br>+char fftw_malloc ();<br> int<br> main ()<br> {<br>-return fftw_alloc_real ();<br>+return fftw_malloc ();<br> ;<br> return 0;<br> }<br> _ACEOF<br> if ac_fn_c_try_link "$LINENO"; then :<br>- ac_cv_lib_fftw3_fftw_alloc_real=yes<br>+ ac_cv_lib_fftw3_fftw_malloc=yes<br> else<br>- ac_cv_lib_fftw3_fftw_alloc_real=no<br>+ ac_cv_lib_fftw3_fftw_malloc=no<br> fi<br> rm -f core conftest.err conftest.$ac_objext \<br> conftest$ac_exeext conftest.$ac_ext<br> LIBS=$ac_check_lib_save_LIBS<br> fi<br>-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_alloc_real" >&5<br>-$as_echo "$ac_cv_lib_fftw3_fftw_alloc_real" >&6; }<br>-if test "x$ac_cv_lib_fftw3_fftw_alloc_real" = xyes; then :<br>+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5<br>+$as_echo "$ac_cv_lib_fftw3_fftw_malloc" >&6; }<br>+if test "x$ac_cv_lib_fftw3_fftw_malloc" = xyes; then :<br> AST_FFTW3_FOUND=yes<br> else<br> AST_FFTW3_FOUND=no<br>diff --git a/configure.ac b/configure.ac<br>index 5da5afa..c1a3994 100644<br>--- a/configure.ac<br>+++ b/configure.ac<br>@@ -2387,7 +2387,7 @@<br> # ------------------------------------^<br> <br> AST_EXT_LIB_CHECK([RESAMPLE], [resample], [resample_open], [libresample.h], [-lm])<br>-AST_EXT_LIB_CHECK([FFTW3], [fftw3], [fftw_alloc_real], [fftw3.h])<br>+AST_EXT_LIB_CHECK([FFTW3], [fftw3], [fftw_malloc], [fftw3.h])<br> AST_EXT_LIB_CHECK([SNDFILE], [sndfile], [sf_open], [sndfile.h])<br> <br> AST_C_COMPILE_CHECK([SPANDSP], [<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9289">change 9289</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/9289"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ice5640e08385a64a0a6555deaccd91e86bca154f </div>
<div style="display:none"> Gerrit-Change-Number: 9289 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>