From c86f7600c2e9c3bde0a28e7b55148150340e570b Mon Sep 17 00:00:00 2001 From: Oliver Schinagl Date: Tue, 11 Jan 2005 14:31:29 +0000 Subject: Added define to calculate delay length. --- Graphic_Equalizer/include/audio.hch | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Graphic_Equalizer/include/audio.hch b/Graphic_Equalizer/include/audio.hch index ffa55aa..f3813d7 100644 --- a/Graphic_Equalizer/include/audio.hch +++ b/Graphic_Equalizer/include/audio.hch @@ -33,6 +33,7 @@ typedef struct { } ifft_info with { block = "BlockRAM"}; unsigned 4 *equalizer_levels_ptr; unsigned 1 display_log; + unsigned 1 saturated; } audiodata_t; @@ -67,6 +68,13 @@ typedef struct { /* + * Convert microseconds to something our code understands. + */ +#define AUDIOINITDELAY ((PAL_ACTUAL_CLOCK_RATE *AUDIOINIT_MICROSECONDS) /1000000) + + + +/* * Initialize the Audio sub-system. Input_source chooses between line in or mic * in. The sample_rate is set to supplied rate. Defines for these are mentioned * above. @@ -92,7 +100,7 @@ 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); +macro proc sample_audio(audiodata, AUDIOOIN); /* * Audio output loop, writes the modified audio samples to the audio output. -- cgit v0.12