MCPcopy Create free account
hub / github.com/LabSound/LabSound / computeInverseFFT

Method computeInverseFFT

src/backends/FFTFrameAppleAcclerate.cpp:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void FFTFrame::computeInverseFFT(float * data)
125{
126 vDSP_fft_zrip(m_FFTSetup, &m_frame, 1, m_log2FFTSize, FFT_INVERSE);
127 vDSP_ztoc(&m_frame, 1, (DSPComplex *) data, 2, m_FFTSize / 2);
128
129 // Do final scaling so that x == IFFT(FFT(x))
130 float scale = 0.5f / m_FFTSize;
131 vDSP_vsmul(data, 1, &scale, data, 1, m_FFTSize);
132}
133
134FFTSetup FFTFrame::fftSetupForSize(int fftSize)
135{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected