1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
6<title>SYNRunAudioFrame</title>
7<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
8<META http-equiv="Content-Style-Type" content="text/css">
9</head>
10
11<body>
12
13<h1 align="left">SYNRunAudioFrame</h1>
14
15<h2>C Specification</h2>
16
17<dl>
18<dd><pre><CODE>#include &lt;revolution.h&gt;
19#include &lt;revolution/syn.h&gt;</CODE></pre>
20  </dd>
21  <dd><pre><CODE>void SYNRunAudioFrame(void);</CODE></pre>
22  </dd>
23</dl>
24
25<h2>Arguments</h2>
26
27<p>None.</p>
28
29<h2>Return Values</h2>
30
31<p>None.</p>
32
33<h2>Description</h2>
34
35<p>This function runs and services all active voices for a single audio frame. It can run with interrupts enabled. This function must be called by the audio frame callback routine, which in turn must be registered by <CODE>AXRegisterCallback</CODE>. For example:</p>
36<BLOCKQUOTE>
37<pre><CODE>static void callbackForAudioFrame(void)</CODE></pre>
38</BLOCKQUOTE>
39<BLOCKQUOTE>
40<pre><CODE>{
41 &nbsp;&nbsp; SYNRunAudioFrame();		//runs the synthesizer
42    MIXUpdateSettings();	//updates and changes some settings with SYN</CODE></pre>
43</BLOCKQUOTE>
44<BLOCKQUOTE>
45<pre><CODE>}</CODE></pre>
46</BLOCKQUOTE>
47<BLOCKQUOTE>
48<pre><CODE>void main(void)</CODE></pre>
49</BLOCKQUOTE>
50<BLOCKQUOTE>
51<pre><CODE>{
52    ...</CODE></pre>
53</BLOCKQUOTE>
54<BLOCKQUOTE><CODE> &nbsp;&nbsp;&nbsp; AXInit();<br> &nbsp;&nbsp;&nbsp; MIXInit();<br> &nbsp;&nbsp;&nbsp; SYNInit();<br> &nbsp;&nbsp;&nbsp; AXRegisterCallback(&amp;callbackAudioFrame);</CODE></BLOCKQUOTE>
55<BLOCKQUOTE><CODE>&nbsp;&nbsp;&nbsp; ...<br> <br> &nbsp;&nbsp;&nbsp; SYNQuit();<br> &nbsp;&nbsp;&nbsp; MIXQuit();<br> &nbsp;&nbsp;&nbsp; AXQuit();<br> &nbsp;&nbsp;&nbsp; ...<br> }</CODE></BLOCKQUOTE>
56
57<h2>See Also</h2>
58
59<p><font face="Courier New"><a href="../../ax/Initialization/AXRegisterCallback.html">AXRegisterCallback</a><br> <a href="../Mixer/MIXInit.html">MIXInit</a><br> <a href="../../ax/Initialization/AXInit.html">AXInit</a></font></p>
60
61<h2>Revision History</h2>
62<P>2006/03/01 Initial version.</P>
63
64<hr>
65<P>CONFIDENTIAL</p>
66</BODY>
67</HTML>
68