Hi
I have a problem about FFT and IFFT,
I have get audio data from I2S buffer(as below real_inputBuffer_L) to push rfft:
float real_inputBuffer_L[BUFF_SIZE/2];
float rfft_real_output_L[BUFF_SIZE/2];
float rfft_imag_output_L[BUFF_SIZE/2];
float irfft_real_output_L[BUFF_SIZE/2];
float irfft_imag_output_L[BUFF_SIZE/2];
result = rfft512(real_inputBuffer_L, rfft_real_output_L, rfft_imag_output_L);
Then I push rfft_real_output_L and rfft_imag_output_L to ifft:
result = ifft512(rfft_real_input_L, rfft_imag_input_L, irfft_real_output_L, irfft_imag_output_L);
question 1, the irfft_real_output_L power be magnify 512, is it correct?
I mean if irfft_real_output_L /512 , will almost equal real_inputBuffer_L( like as below plot photo)
red dot color is real_inputBuffer_L, green color is irfft_real_output_L /512
question 2, as I know sin wave --> FFT should be get one point frequency. how could I see the result to verify convert is success?
I have watch the rfft_real_output_L and rfft_imag_output_L data, but data seem do not display.
question 3, above FFT and IFFT is it correct? or I need more configure setting for FFT/IFFT.