summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer_v1.0/doc/html/fft_8hch-source.html
blob: c7419738779719a0d8953f385207b9531aab9310 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Graphic Equalizer 2: C:/Project  Marcel &amp; Oliver/Graphic_Equalizer/include/fft.hch Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">C:</a>&nbsp;/&nbsp;<a class="el" href="dir_000001.html">Project  Marcel &amp; Oliver</a>&nbsp;/&nbsp;<a class="el" href="dir_000002.html">Graphic_Equalizer</a>&nbsp;/&nbsp;<a class="el" href="dir_000003.html">include</a></div>
<h1>fft.hch</h1><a href="fft_8hch.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a><a class="code" href="fft_8hch.html#a0">00001</a> <span class="preprocessor">#define NUMBER_OF_COLUMNS       8</span>
<a name="l00002"></a><a class="code" href="fft_8hch.html#a1">00002</a> <span class="preprocessor"></span><span class="preprocessor">#define NUMBER_OF_POINTS        (1&lt;&lt;NUMBER_OF_COLUMNS)</span>
<a name="l00003"></a><a class="code" href="fft_8hch.html#a2">00003</a> <span class="preprocessor"></span><span class="preprocessor">#define NUMBER_OF_FREQUENCIES   (NUMBER_OF_POINTS&gt;&gt;1)</span>
00004 <span class="preprocessor"></span>
00005 <span class="preprocessor">#if HARDWARE_MULTIPLY</span>
00006 <span class="preprocessor"></span><span class="comment">/*</span>
00007 <span class="comment"> * This routine obtains the audio data from the audio I/O component and copies this  </span>
00008 <span class="comment"> * data to local arrays for calculating purposes, and calls the FFT algorithm.</span>
00009 <span class="comment">*/</span>
00010 <span class="keywordtype">void</span> <a class="code" href="fft_8hcc.html#a4">perform_fft</a>(<span class="keywordtype">signed</span> 18 *pcm_audio);
00011 
00012 <span class="comment">/* This routine calls the ifft algorithm and after completing that it obtains the </span>
00013 <span class="comment"> * modified audio data and copies that to the output arrays of the audio I/O component. </span>
00014 <span class="comment"> * Besides that it also fills the array used by the display routine for displaying the waveform.</span>
00015 <span class="comment">*/</span>
00016 <span class="keywordtype">void</span> <a class="code" href="fft_8hcc.html#a5">perform_ifft</a>(<span class="keywordtype">signed</span> 18 *modified_audio ,<span class="keywordtype">unsigned</span> 6 *ifft_info);
00017 <span class="preprocessor">#else</span>
00018 <span class="preprocessor"></span><span class="comment">/*</span>
00019 <span class="comment"> * This routine obtains the audio data from the audio I/O component and copies this  </span>
00020 <span class="comment"> * data to local arrays for calculating purposes, and calls the FFT algorithm.</span>
00021 <span class="comment">*/</span>
00022 <span class="keywordtype">void</span> <a class="code" href="fft_8hcc.html#a4">perform_fft</a>(<span class="keywordtype">signed</span> 16 *pcm_audio);
00023 
00024 <span class="comment">/* This routine calls the ifft algorithm and after completing that it obtains the </span>
00025 <span class="comment"> * modified audio data and copies that to the output arrays of the audio I/O component. </span>
00026 <span class="comment"> * Besides that it also fills the array used by the display routine for displaying the waveform.</span>
00027 <span class="comment">*/</span>
00028 <span class="keywordtype">void</span> <a class="code" href="fft_8hcc.html#a5">perform_ifft</a>(<span class="keywordtype">signed</span> 16 *modified_audio ,<span class="keywordtype">unsigned</span> 6 *ifft_info);
00029 <span class="preprocessor">#endif</span>
00030 <span class="preprocessor"></span>
00031 <span class="comment">/* This routine equalizes the frequencies derived by the FFT calculation, </span>
00032 <span class="comment"> * according to the settings of the equalizer bars.</span>
00033 <span class="comment">*/</span>
00034 <span class="keywordtype">void</span> <a class="code" href="fft_8hcc.html#a6">equalize_audio</a>(<a class="code" href="structaudiodata__t.html">audiodata_t</a> *audiodata);
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Dec 9 14:37:06 2004 for Graphic Equalizer 2 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
</body>
</html>