diff options
author | Marcel Lauwerijssen <paranoya@morphcore.com> | 2005-01-06 14:43:16 (GMT) |
---|---|---|
committer | Marcel Lauwerijssen <paranoya@morphcore.com> | 2005-01-06 14:43:16 (GMT) |
commit | a09c14b4413fd5977df3e1087cc44a8030809035 (patch) | |
tree | 2d0c718cbe2ec1e17f0fbf8c4e5a4b5a1dc8673c /Graphic_Equalizer | |
parent | 269b93dc65ce1df8061b1b9056da3bb68ee3d544 (diff) | |
download | TASS-a09c14b4413fd5977df3e1087cc44a8030809035.zip TASS-a09c14b4413fd5977df3e1087cc44a8030809035.tar.gz TASS-a09c14b4413fd5977df3e1087cc44a8030809035.tar.bz2 |
merged runfft into audio.hcc
Diffstat (limited to 'Graphic_Equalizer')
-rw-r--r-- | Graphic_Equalizer/include/audio.hch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Graphic_Equalizer/include/audio.hch b/Graphic_Equalizer/include/audio.hch index e9362f9..ffa55aa 100644 --- a/Graphic_Equalizer/include/audio.hch +++ b/Graphic_Equalizer/include/audio.hch @@ -81,6 +81,24 @@ macro proc audio_init(input_source, sample_rate, AUDIOIN, AUDIOOUT); */
macro proc audio_main(audiodata, AUDIOIN, AUDIOOUT);
+/*
+ * FFT loop, waits until 64 samples are read from the audio input
+ * before switching the pointers needed for double and quadruple buffering, after that
+ * sequentially calling the perform_fft, equalize_audio and perform_ifft functions.
+ */
+macro proc run_fft(audiodata);
+
+/*
+ * Sampling loop, fills the audio input and output arrays and uses FFT_Sync
+ * to notify the FFT when 64 samples are read from the audio input.
+ */
+macro proc sample_audio(AUDIOOIN);
+
+/*
+ * Audio output loop, writes the modified audio samples to the audio output.
+ */
+macro proc output_audio(AUDIOOUT);
+
#else
#error "ERROR file audio.hch multiple times included"
#endif /* --- _AUDIO_HCH --- */
|