When I used this function to calculate fft, I got wrong result:
void FFTTEST(float * real, float * fftOut)
{
int i = 0;
float fftIn[512]={0.0};
DSPF_sp_fftSPxSP(256,&fftIn[0],&wforFFT[0],fftOut,brev,4,0,256);
}
real is a floating-point array of 256 real data, wforFFT is a floating-point array of length 512 created by tw_genSPxSPfft , brev is a 64-entry bit-reverse data table, and fftOut is a floating-point array of length 512.
Would somebody tell me how to get the right fft result?
Thanks a lot,