Skip to content

Instantly share code, notes, and snippets.

@milesegan
Created March 19, 2011 23:30
Show Gist options
  • Save milesegan/877906 to your computer and use it in GitHub Desktop.
Save milesegan/877906 to your computer and use it in GitHub Desktop.
c99 fft example
float imag[size_2];
float real[size_2];
DSPSplitComplex comp = (DSPSplitComplex) { .imagp = imag, .realp = real };
vDSP_ctoz((DSPComplex *)windowedSamples, 2, &comp, 1, size_2);
vDSP_fft_zrip(self.fftSetup, &comp, 1, logSize, kFFTDirection_Forward);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment