pub fn real_fft_magnitude(
input: &[f32],
scratch: &mut [f32],
out_mags: &mut [f32],
) -> Result<(), AudioError>Expand description
Forward FFT of N real samples, writing the magnitude of the first
N/2 + 1 bins (the non-redundant half for real input).
input:Nreal samples,Na power of two.scratch: exactly2 * Nfloats; used as interleaved complex work space and clobbered on return.out_mags: at leastN/2 + 1floats; magnitudes|X[k]|fork = 0..=N/2are written into the firstN/2 + 1slots.
Returns AudioError::InvalidParameter if N is 0 or not a power of two,
or AudioError::OutputBufferTooSmall if scratch or out_mags are short.