annotate src/fft.h @ 274:2a7074774cc7

Attempt to fix Linux build error
author Jamie Bullock <jamie@jamiebullock.com>
date Tue, 11 Nov 2014 19:53:38 +0000
parents 2d749a837036
children c5e3855caaa9
rev   line source
jamie@149 1 /*
jamie@149 2 * Copyright (C) 2012 Jamie Bullock
jamie@149 3 *
jamie@149 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
jamie@149 5 * of this software and associated documentation files (the "Software"), to
jamie@149 6 * deal in the Software without restriction, including without limitation the
jamie@149 7 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
jamie@149 8 * sell copies of the Software, and to permit persons to whom the Software is
jamie@149 9 * furnished to do so, subject to the following conditions:
jamie@149 10 *
jamie@149 11 * The above copyright notice and this permission notice shall be included in
jamie@149 12 * all copies or substantial portions of the Software.
jamie@149 13 *
jamie@149 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
jamie@149 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
jamie@149 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
jamie@149 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
jamie@149 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
jamie@149 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
jamie@149 20 * IN THE SOFTWARE.
jamie@149 21 *
jamie@149 22 */
jamie@149 23
jamie@150 24 #ifndef FFT_H
jamie@150 25 #define FFT_H
jamie@150 26
andrea@211 27 #ifdef _MSC_VER
andrea@211 28 #ifndef __cplusplus
andrea@211 29 typedef int bool;
andrea@211 30 #define false 0
andrea@211 31 #define true 1
andrea@211 32 #endif
andrea@211 33 #else
andrea@211 34 #include <stdbool.h>
andrea@211 35 #endif
jamie@154 36
jamie@150 37 #ifdef USE_OOURA
jamie@149 38 #include "ooura/fftsg.h"
jamie@150 39 #else
jamie@150 40 #include <Accelerate/Accelerate.h>
jamie@150 41 #endif
jamie@150 42
jamie@150 43 #ifdef USE_OOURA
jamie@150 44 typedef struct xtract_ooura_data_
jamie@150 45 {
jamie@150 46 int *ooura_ip;
jamie@150 47 double *ooura_w;
jamie@150 48 bool initialised;
jamie@150 49 } xtract_ooura_data;
jamie@150 50 #else
jamie@150 51 typedef struct xtract_vdsp_data_
jamie@150 52 {
jamie@150 53 FFTSetupD setup;
jamie@150 54 DSPDoubleSplitComplex fft;
jamie@150 55 vDSP_Length log2N;
jamie@150 56 bool initialised;
jamie@150 57 } xtract_vdsp_data;
jamie@150 58 #endif
jamie@150 59
jamie@150 60 #endif /* Header guard */