Classes/FFTHelper.h
/* |
Copyright (C) 2016 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
This class demonstrates how to use the Accelerate framework to take Fast Fourier Transforms (FFT) of the audio data. FFTs are used to perform analysis on the captured audio data |
*/ |
#ifndef __aurioTouch3__FFTHelper__ |
#define __aurioTouch3__FFTHelper__ |
#include <Accelerate/Accelerate.h> |
class FFTHelper |
{ |
public: |
FFTHelper( UInt32 inMaxFramesPerSlice ); |
~FFTHelper(); |
void ComputeFFT ( Float32* inAudioData, Float32* outFFTData ); |
private: |
FFTSetup mSpectrumAnalysis; |
DSPSplitComplex mDspSplitComplex; |
Float32 mFFTNormFactor; |
UInt32 mFFTLength; |
UInt32 mLog2N; |
}; |
#endif /* defined(__aurioTouch3__FFTHelper__) */ |
Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-08-12