bridge_softmix_binaural: Enable FFTW3 in Solaris 11.

ASTERISK-27939

Change-Id: Ice5640e08385a64a0a6555deaccd91e86bca154f
This commit is contained in:
Alexander Traud
2018-06-23 11:50:00 +02:00
parent efe2ba43ca
commit 804d931f27
3 changed files with 14 additions and 14 deletions

View File

@@ -193,12 +193,12 @@ int init_convolve_channel(struct convolve_channel *channel, unsigned int hrtf_le
float *hrir;
/* Prepare FFTW. */
channel->fftw_in = fftw_alloc_real(hrtf_len + 1);
channel->fftw_in = (double *) fftw_malloc(sizeof(double) * (hrtf_len + 1));
if (channel->fftw_in == NULL) {
return -1;
}
channel->fftw_out = fftw_alloc_real(hrtf_len + 1);
channel->fftw_out = (double *) fftw_malloc(sizeof(double) * (hrtf_len + 1));
if (channel->fftw_out == NULL) {
fftw_free(channel->fftw_in);
return -1;
@@ -239,7 +239,7 @@ int init_convolve_channel(struct convolve_channel *channel, unsigned int hrtf_le
}
fftw_execute(channel->fftw_plan);
channel->hrtf = fftw_alloc_real(hrtf_len);
channel->hrtf = (double *) fftw_malloc(sizeof(double) * hrtf_len);
if (channel->hrtf == NULL) {
fftw_free(channel->fftw_in);
fftw_free(channel->fftw_out);