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>SEQRunAudioFrame</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">SEQRunAudioFrame</h1> 14 15<h2>C Specification</h2> 16 17<dl> 18 <dd> 19<pre><CODE>#include <revolution.h> 20#include <revolution/seq.h> 21 22void SEQRunAudioFrame (void);</CODE></pre> 23 </dd> 24</dl> 25 26<h2>Arguments</h2> 27 28<p>None.</p> 29 30<h2>Return Values</h2> 31 32<p>None.</p> 33 34<h2>Description</h2> 35 36<p>This function runs the sequence process for a single audio frame. It must be called from the AX callback routine for each audio frame. For example:</p> 37 38<BLOCKQUOTE> 39<pre><CODE>static void callbackForAudioFrame(void) 40{ 41 SEQRunAudioFrame(); // Runs MIDI sequencer 42 SYNRunAudioFrame(); // Runs synthesizer 43 MIXUpdateSettings(); // Reflects the setting changes made by SYN 44} 45 46void main(void) 47{ 48 ... 49 50 AXInit(); 51 MIXInit(); 52 SYNInit(); 53 SEQInit(); 54 AXRegisterCallback(&callbackAudioFrame); 55 56 ... 57 58 SEQQuit(); 59 SYNQuit(); 60 MIXQuit(); 61 AXQuit(); 62 ... 63}</CODE></pre> 64</BLOCKQUOTE> 65 66<p>This function can run with interrupts enabled.</p> 67 68<h2>See Also</h2> 69 70<p> 71<code><a href="../../ax/Initialization/AXRegisterCallback.html">AXRegisterCallback</a>, <a href="../Synthesizer/SYNRunAudioFrame.html">SYNRunAudioFrame</a>, <a href="../Mixer/MIXUpdateSettings.html">MIXUpdateSettings</a>,</code> 72</p> 73 74<h2>Revision History</h2> 75<P>03/01/2006 Initial version.</P> 76 77</body> 78</html> 79