shithub: aubio

Download patch

ref: f50c950343c37b685940f84c6dff73335ee7fa5d
parent: 392ad1c414fdbafe5da65fbd419a04f36eb713e2
author: Paul Brossier <piem@piem.org>
date: Tue Sep 27 20:23:24 EDT 2016

src/spectral/fft.c: use prefixed aubio_ooura_rdft

--- a/src/spectral/fft.c
+++ b/src/spectral/fft.c
@@ -114,7 +114,7 @@
 
 #else                         // using OOURA
 // let's use ooura instead
-extern void rdft(int, int, smpl_t *, int *, smpl_t *);
+extern void aubio_ooura_rdft(int, int, smpl_t *, int *, smpl_t *);
 
 #endif /* HAVE_ACCELERATE */
 #endif /* HAVE_FFTW3 */
@@ -282,7 +282,7 @@
   smpl_t scale = 1./2.;
   aubio_vDSP_vsmul(compspec->data, 1, &scale, compspec->data, 1, s->fft_size);
 #else                         // using OOURA
-  rdft(s->winsize, 1, s->in, s->ip, s->w);
+  aubio_ooura_rdft(s->winsize, 1, s->in, s->ip, s->w);
   compspec->data[0] = s->in[0];
   compspec->data[s->winsize / 2] = s->in[1];
   for (i = 1; i < s->fft_size - 1; i++) {
@@ -340,7 +340,7 @@
     s->out[2 * i] = compspec->data[i];
     s->out[2 * i + 1] = - compspec->data[s->winsize - i];
   }
-  rdft(s->winsize, -1, s->out, s->ip, s->w);
+  aubio_ooura_rdft(s->winsize, -1, s->out, s->ip, s->w);
   for (i=0; i < s->winsize; i++) {
     output->data[i] = s->out[i] * scale;
   }