summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2005-01-11 14:31:29 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2005-01-11 14:31:29 (GMT)
commitc86f7600c2e9c3bde0a28e7b55148150340e570b (patch)
tree0eeeea715d6fc50f7f91032b8e4115392f250268
parentd20fdb994d58240d792f67fb074ce2b8ebeec0a3 (diff)
downloadTASS-c86f7600c2e9c3bde0a28e7b55148150340e570b.zip
TASS-c86f7600c2e9c3bde0a28e7b55148150340e570b.tar.gz
TASS-c86f7600c2e9c3bde0a28e7b55148150340e570b.tar.bz2
Added define to calculate delay length.
-rw-r--r--Graphic_Equalizer/include/audio.hch10
1 files changed, 9 insertions, 1 deletions
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.