diff options
-rw-r--r-- | Graphic_Equalizer/include/fft.hch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Graphic_Equalizer/include/fft.hch b/Graphic_Equalizer/include/fft.hch index f0cd695..0d2399b 100644 --- a/Graphic_Equalizer/include/fft.hch +++ b/Graphic_Equalizer/include/fft.hch @@ -1,8 +1,30 @@ #if HARDWARE_MULTIPLY
+/*
+ * This routine obtains the audio data from the audio I/O component and copies this
+ * data to local arrays for calculating purposes, and calls the FFT algorithm.
+*/
void perform_fft(signed 18 *pcm_audio);
+
+/* This routine calls the ifft algorithm and after completing that it obtains the
+ * modified audio data and copies that to the output arrays of the audio I/O component.
+ * Besides that it also fills the array used by the display routine for displaying the waveform.
+*/
void perform_ifft(signed 18 *modified_audio ,unsigned 6 *ifft_info);
#else
+/*
+ * This routine obtains the audio data from the audio I/O component and copies this
+ * data to local arrays for calculating purposes, and calls the FFT algorithm.
+*/
void perform_fft(signed 16 *pcm_audio);
+
+/* This routine calls the ifft algorithm and after completing that it obtains the
+ * modified audio data and copies that to the output arrays of the audio I/O component.
+ * Besides that it also fills the array used by the display routine for displaying the waveform.
+*/
void perform_ifft(signed 16 *modified_audio ,unsigned 6 *ifft_info);
#endif
+
+/* This routine equalizes the frequencies derived by the FFT calculation,
+ * according to the settings of the equalizer bars.
+*/
void equalize_audio(audiodata_t *audiodata);
|