ailiaAudioFFT method
~japanese @brief FFTを実行します。 @param dst 出力データのポインタ、float 型、外側から fft_n, 2(実部、虚部) 順のメモリレイアウト @param src 入力データのポインタ、float 型、要素数 fft_n @param fft_n FFT点数 @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details FFT点数が2の累乗の場合、高速アルゴリズムで動作します。 出力データは実部と虚部の交互信号であり、長さは fft_n*2 です。
~english
@brief Execute the FFT.
@param dst pointer to the output data, of float format, of length 2fft_n, and which memory layout is a sequence of
fft_n pairs real part, imaginary part
. Memory layout, using the row-major convention: (fft_n, 2).
@param src pointer to the input data, of float format, and of length fft_n
@param fft_n count of FFT values (i.e. of frequency bins)
@return
In case of success, \ref AILIA_STATUS_SUCCESS , and else an error code is returned.
@details
If fft_n is a power of 2, this function uses a faster algorithm.
As the output data alternates real and imaginary parts, its length is 2fft_n.
Implementation
int ailiaAudioFFT(
ffi.Pointer<ffi.Void> dst,
ffi.Pointer<ffi.Void> src,
int fft_n,
) {
return _ailiaAudioFFT(
dst,
src,
fft_n,
);
}