* another round of dir-less .cache DEP updates
[t2sde.git] / package / audio / jamin / fftw-no-f.patch
blob8bad33388e8ee9645ad3c2596097f2ebc503fc3d
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../jamin/fftw-no-f.patch
5 # Copyright (C) 2010 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- jamin-0.95.0/src/process.c.vanilla 2010-08-26 12:34:41.000000000 +0200
18 +++ jamin-0.95.0/src/process.c 2010-08-26 12:35:27.000000000 +0200
19 @@ -168,12 +168,12 @@
22 /* Allocate space for FFT data */
23 - real = fftwf_malloc(sizeof(fft_data) * BINS);
24 - comp = fftwf_malloc(sizeof(fft_data) * BINS);
25 - comp_tmp = fftwf_malloc(sizeof(fft_data) * BINS);
26 + real = fftw_malloc(sizeof(fft_data) * BINS);
27 + comp = fftw_malloc(sizeof(fft_data) * BINS);
28 + comp_tmp = fftw_malloc(sizeof(fft_data) * BINS);
30 - plan_rc = fftwf_plan_r2r_1d(BINS, real, comp, FFTW_R2HC, FFTW_MEASURE);
31 - plan_cr = fftwf_plan_r2r_1d(BINS, comp_tmp, real, FFTW_HC2R, FFTW_MEASURE);
32 + plan_rc = fftw_plan_r2r_1d(BINS, real, comp, FFTW_R2HC, FFTW_MEASURE);
33 + plan_cr = fftw_plan_r2r_1d(BINS, comp_tmp, real, FFTW_HC2R, FFTW_MEASURE);
35 /* Calculate root raised cosine window */
36 for (i = 0; i < BINS; i++) {
37 @@ -230,7 +230,7 @@
38 real[i] = window[i] * in_buf[port][(in_ptr + i) & BUF_MASK];
41 - fftwf_execute(plan_rc);
42 + fftw_execute(plan_rc);
44 /* run the EQ + spectrum an. + xover process */
46 @@ -259,7 +259,7 @@
47 bin_peak[i] = peak;
50 - fftwf_execute(plan_cr);
51 + fftw_execute(plan_cr);
52 for (j = 0; j < BINS; j++) {
53 out_buf[port][XO_LOW][(in_ptr + j) & BUF_MASK] += real[j] * fix *
54 window[j];
55 @@ -283,7 +283,7 @@
56 bin_peak[i] = peak;
59 - fftwf_execute(plan_cr);
60 + fftw_execute(plan_cr);
61 for (j = 0; j < BINS; j++) {
62 out_buf[port][XO_MID][(in_ptr + j) & BUF_MASK] += real[j] * fix *
63 window[j];
64 @@ -306,7 +306,7 @@
65 bin_peak[i] = peak;
68 - fftwf_execute(plan_cr);
69 + fftw_execute(plan_cr);
70 for (j = 0; j < BINS; j++) {
71 out_buf[port][XO_HIGH][(in_ptr + j) & BUF_MASK] += real[j] * fix *
72 window[j];
73 @@ -328,7 +328,7 @@
74 real[i] = window[i] * in_buf[port][(in_ptr + i) & BUF_MASK];
77 - fftwf_execute(plan_rc);
78 + fftw_execute(plan_rc);
80 /* run the EQ + spectrum an. + xover process */
82 @@ -357,7 +357,7 @@
83 bin_peak[i] = peak;
86 - fftwf_execute(plan_cr);
87 + fftw_execute(plan_cr);
88 for (j = 0; j < BINS; j++) {
89 mid_buf[port][(in_ptr + j) & BUF_MASK] += real[j] * fix * window[j];