annotate src/fft.h @ 246:bde5fa8692ff

Merge pull request #61 from seanlikeskites/master MSVC fixes
author Jamie Bullock <jamie@jamiebullock.com>
date Fri, 13 Jun 2014 17:29:26 +0100
parents ef80f7c52c6d
children 2d749a837036
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
jamie@150 27 #ifdef HAVE_CONFIG_H
jamie@150 28 #include <config.h>
jamie@150 29 #endif
jamie@150 30
andrea@211 31 #ifdef _MSC_VER
andrea@211 32 #define USE_OOURA
andrea@211 33 #ifndef __cplusplus
andrea@211 34 typedef int bool;
andrea@211 35 #define false 0
andrea@211 36 #define true 1
andrea@211 37 #endif
andrea@211 38 #else
andrea@211 39 #include <stdbool.h>
andrea@211 40 #endif
jamie@154 41
jamie@150 42 #ifdef USE_OOURA
jamie@149 43 #include "ooura/fftsg.h"
jamie@150 44 #else
jamie@150 45 #include <Accelerate/Accelerate.h>
jamie@150 46 #endif
jamie@150 47
jamie@150 48 #ifdef USE_OOURA
jamie@150 49 typedef struct xtract_ooura_data_
jamie@150 50 {
jamie@150 51 int *ooura_ip;
jamie@150 52 double *ooura_w;
jamie@150 53 bool initialised;
jamie@150 54 } xtract_ooura_data;
jamie@150 55 #else
jamie@150 56 typedef struct xtract_vdsp_data_
jamie@150 57 {
jamie@150 58 FFTSetupD setup;
jamie@150 59 DSPDoubleSplitComplex fft;
jamie@150 60 vDSP_Length log2N;
jamie@150 61 bool initialised;
jamie@150 62 } xtract_vdsp_data;
jamie@150 63 #endif
jamie@150 64
jamie@150 65 #endif /* Header guard */