line 194: vDSP_ctoz((COMPLEX*) _A, 2, &(_compl_buf), 1, self.spectrumResolution);
The vDSP examples by apple seem to suggest that "self.spectrumResolution" should either be divided by 2, or the FFT should increase its log2 count by 1 (depending on the actual size of the buffer obv).
This also affects subsequent calls like vDSP_zaspec.
The documentation mentions that vDSP_DFT_Execute is preferred over the FFT variants, whenever possible.
line 194: vDSP_ctoz((COMPLEX*) _A, 2, &(_compl_buf), 1, self.spectrumResolution);
The vDSP examples by apple seem to suggest that "self.spectrumResolution" should either be divided by 2, or the FFT should increase its log2 count by 1 (depending on the actual size of the buffer obv).
This also affects subsequent calls like vDSP_zaspec.
The documentation mentions that vDSP_DFT_Execute is preferred over the FFT variants, whenever possible.