summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer_Original_Port/include/fft.hch
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2004-12-09 13:44:56 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2004-12-09 13:44:56 (GMT)
commit593d5fded11b8723ce27883e06865ab205c6f008 (patch)
tree1f25584a40a2f24861464f0e6ea5416db7951514 /Graphic_Equalizer_Original_Port/include/fft.hch
parent2b08ad7b3243965c832960b8089013cd1f6f46f3 (diff)
downloadTASS-593d5fded11b8723ce27883e06865ab205c6f008.zip
TASS-593d5fded11b8723ce27883e06865ab205c6f008.tar.gz
TASS-593d5fded11b8723ce27883e06865ab205c6f008.tar.bz2
Phase 1: Original Port Completed.
Recommended additions: add and update (doxygen) documentation
Diffstat (limited to 'Graphic_Equalizer_Original_Port/include/fft.hch')
-rw-r--r--Graphic_Equalizer_Original_Port/include/fft.hch34
1 files changed, 34 insertions, 0 deletions
diff --git a/Graphic_Equalizer_Original_Port/include/fft.hch b/Graphic_Equalizer_Original_Port/include/fft.hch
new file mode 100644
index 0000000..635ea7b
--- /dev/null
+++ b/Graphic_Equalizer_Original_Port/include/fft.hch
@@ -0,0 +1,34 @@
+#define NUMBER_OF_COLUMNS 8
+#define NUMBER_OF_POINTS (1<<NUMBER_OF_COLUMNS)
+#define NUMBER_OF_FREQUENCIES (NUMBER_OF_POINTS>>1)
+
+#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);