Chris@337: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@337: Chris@337: /* Chris@337: Vamp Chris@337: Chris@337: An API for audio analysis and feature extraction plugins. Chris@337: Chris@337: Centre for Digital Music, Queen Mary, University of London. Chris@337: Copyright 2006-2012 Chris Cannam and QMUL. Chris@337: Chris@337: Permission is hereby granted, free of charge, to any person Chris@337: obtaining a copy of this software and associated documentation Chris@337: files (the "Software"), to deal in the Software without Chris@337: restriction, including without limitation the rights to use, copy, Chris@337: modify, merge, publish, distribute, sublicense, and/or sell copies Chris@337: of the Software, and to permit persons to whom the Software is Chris@337: furnished to do so, subject to the following conditions: Chris@337: Chris@337: The above copyright notice and this permission notice shall be Chris@337: included in all copies or substantial portions of the Software. Chris@337: Chris@337: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, Chris@337: EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF Chris@337: MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND Chris@337: NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR Chris@337: ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF Chris@337: CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION Chris@337: WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Chris@337: Chris@337: Except as contained in this notice, the names of the Centre for Chris@337: Digital Music; Queen Mary, University of London; and Chris Cannam Chris@337: shall not be used in advertising or otherwise to promote the sale, Chris@337: use or other dealings in this Software without prior written Chris@337: authorization. Chris@337: */ Chris@337: Chris@337: #include Chris@337: Chris@337: #include Chris@337: Chris@349: #if ( VAMP_SDK_MAJOR_VERSION != 2 || VAMP_SDK_MINOR_VERSION != 5 ) Chris@337: #error Unexpected version of Vamp SDK header included Chris@337: #endif Chris@337: chris@340: #ifdef _MSC_VER chris@340: #include chris@340: #include chris@340: #endif chris@340: Chris@337: _VAMP_SDK_PLUGSPACE_BEGIN(FFT.cpp) Chris@337: Chris@337: namespace Vamp { Chris@337: Chris@337: #include "FFTimpl.cpp" Chris@337: Chris@337: void Chris@337: FFT::forward(unsigned int n, Chris@337: const double *ri, const double *ii, Chris@337: double *ro, double *io) Chris@337: { Chris@337: fft(n, false, ri, ii, ro, io); Chris@337: } Chris@337: Chris@337: void Chris@337: FFT::inverse(unsigned int n, Chris@337: const double *ri, const double *ii, Chris@337: double *ro, double *io) Chris@337: { Chris@337: fft(n, true, ri, ii, ro, io); Chris@337: } Chris@337: Chris@337: } Chris@337: Chris@337: _VAMP_SDK_PLUGSPACE_END(FFT.cpp) Chris@337: