summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer_v1.0/doc/html/audio_8hcc-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'Graphic_Equalizer_v1.0/doc/html/audio_8hcc-source.html')
-rw-r--r--Graphic_Equalizer_v1.0/doc/html/audio_8hcc-source.html69
1 files changed, 69 insertions, 0 deletions
diff --git a/Graphic_Equalizer_v1.0/doc/html/audio_8hcc-source.html b/Graphic_Equalizer_v1.0/doc/html/audio_8hcc-source.html
new file mode 100644
index 0000000..a3c36b6
--- /dev/null
+++ b/Graphic_Equalizer_v1.0/doc/html/audio_8hcc-source.html
@@ -0,0 +1,69 @@
+<!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/src/audio.hcc Source File</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.3.9.1 and oliver -->
+<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_000004.html">src</a></div>
+<h1>audio.hcc</h1><a href="audio_8hcc.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001
+00019 <span class="comment">/******** System Includes *************/</span>
+00020 <span class="preprocessor">#include &lt;stdlib.hch&gt;</span>
+00021
+00022 <span class="preprocessor">#include "pal_master.hch"</span>
+00023
+00024 <span class="comment">/******** Application Includes ********/</span>
+00025 <span class="preprocessor">#include "<a class="code" href="configuration_8hch.html">configuration.hch</a>"</span>
+00026 <span class="preprocessor">#include "<a class="code" href="audio_8hch.html">audio.hch</a>"</span>
+00027
+00028
+00029
+<a name="l00045"></a><a class="code" href="audio_8hcc.html#a0">00045</a> macro proc <a class="code" href="audio_8hcc.html#a0">audio_init</a>(gain_level, input_source, sample_rate, AUDIOIN, AUDIOOUT) {
+00046 <span class="comment">/*</span>
+00047 <span class="comment"> * We simply call the appropiate handlers and pass values along. We</span>
+00048 <span class="comment"> * Don't set the mute on input gain. We have volume control to do this.</span>
+00049 <span class="comment"> * Input and Output sampling rates are equal. We dont' need different</span>
+00050 <span class="comment"> * rates.</span>
+00051 <span class="comment"> */</span>
+00052 RC200AudioInSetGain(FALSE, gain_level, gain_level);
+00053 RC200AudioInSetInput(input_source);
+00054 PalAudioInSetSampleRate(AUDIOIN, sample_rate);
+00055 PalAudioOutSetSampleRate(AUDIOOUT, sample_rate);
+00056 } <span class="comment">/* --- audio_init() --- */</span>
+00057
+00058
+00059 <span class="preprocessor">#if !USE_RUNFFT</span>
+00060 <span class="preprocessor"></span><span class="comment">//TODO: put runfft here!</span>
+<a name="l00076"></a><a class="code" href="audio_8hcc.html#a1">00076</a> <span class="comment"></span>macro proc <a class="code" href="audio_8hcc.html#a1">audio_main</a>(audiodata, AUDIOIN, AUDIOOUT) {
+00077 <span class="comment">/*</span>
+00078 <span class="comment"> * Determin the data width for the current platform.</span>
+00079 <span class="comment"> */</span>
+00080 macro expr IW = PalAudioInGetMaxDataWidthCT();
+00081 macro expr OW = PalAudioOutGetMaxDataWidthCT();
+00082
+00083 <span class="keywordtype">signed</span> IW sample_left_in, sample_right_in;
+00084 <span class="keywordtype">signed</span> OW sample_left_out, sample_right_out;
+00085
+00086 <span class="keywordflow">while</span> (TRUE) {
+00087 PalAudioInRead(AUDIOIN, &amp;sample_left_in, &amp;sample_right_in);
+00088
+00089 <span class="comment">/* par {</span>
+00090 <span class="comment"> sample_add(sample_left_in);</span>
+00091 <span class="comment"> sample_get(&amp;sample_left_out);</span>
+00092 <span class="comment"> sample_right_out = sample_right_in;</span>
+00093 <span class="comment"> }</span>
+00094 <span class="comment"> if (rotate_samples()) {</span>
+00095 <span class="comment"> / *</span>
+00096 <span class="comment"> * 64 Samples have been processed, calculate.</span>
+00097 <span class="comment"> * /</span>
+00098 <span class="comment"> }</span>
+00099 <span class="comment">*/</span> PalAudioOutWrite(AUDIOOUT, (<span class="keywordtype">signed</span> OW)(sample_left_in @ 0), (<span class="keywordtype">signed</span> OW)(sample_right_in @ 0));
+00100 }
+00101 } <span class="comment">/* --- audio_main() --- */</span>
+00102 <span class="preprocessor">#endif</span>
+</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>