EZAudioFFTDelegate

@protocol EZAudioFFTDelegate <NSObject>

The EZAudioFFTDelegate provides event callbacks for the EZAudioFFT (and subclasses such as the EZAudioFFTRolling) whenvever the FFT is computed.

  • Triggered when the EZAudioFFT computes an FFT from a buffer of input data. Provides an array of float data representing the computed FFT. - parameter: fft The EZAudioFFT instance that triggered the event. - parameter: fftData A float pointer representing the float array of FFT data. - parameter: bufferSize A vDSP_Length (unsigned long) representing the length of the float array.

    Declaration

    Objective-C

    - (void)fft:(EZAudioFFT *)fft
        updatedWithFFTData:(float *)fftData
                bufferSize:(vDSP_Length)bufferSize;

    Swift

    optional func fft(_ fft: EZAudioFFT!, updatedWithFFTData fftData: UnsafeMutablePointer

    Parameters

    fft

    The EZAudioFFT instance that triggered the event.

    fftData

    A float pointer representing the float array of FFT data.

    bufferSize

    A vDSP_Length (unsigned long) representing the length of the float array.