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>AXSetMaxDspCycles</title>
7<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
8<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows">
9<META http-equiv="Content-Style-Type" content="text/css">
10</head>
11
12<body>
13
14<h1 align="left">AXSetMaxDspCycles</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/ax.h&gt;
19
20#define AX_DSP_CYCLES_PBSYNC    2000
21#define AX_DSP_CYCLES           (OS_BUS_CLOCK / 400) - AX_DSP_CYCLES_PBSYNC
22
23void AXSetMaxDspCycles(u32 cycles);
24</pre></dd></dl>
25
26<h2>Arguments</h2>
27<TABLE class="arguments" border="1" >
28  <tr>
29<th>cycles</th>
30<td>Maximum DSP cycles for audio processing per frame. For a 100MHz DSP, the maximum number of available cycles per 5-millisecond audio frame is 500,000.</td>
31  </tr>
32</table>
33
34<h2>Return Values</h2>
35<p>None.</p>
36
37<h2>Description</h2>
38<p>The <code>AXSetMaxDspCycles</code> function specifies the maximum number of DSP cycles that AX may use per frame. The maximum value and default setting is <code>AX_DSP_CYCLES</code>.</p>
39
40<p>For every audio frame, AX calculates the estimated number of DSP cycles needed to process the active voices. The number of cycles needed by a voice depends on the properties (or &quot;complexity&quot;) of that voice.</p>
41
42<h2>See Also</h2>
43<p class="reference">
44<a href="AXGetMaxDSPCycles.html">AXGetMaxDspCycles</a>, <a href="AXGetDSPCycles.html">AXGetDspCycles</a>
45</p>
46
47<h2>Revision History</h2>
48<P>
492006/03/01 Initial version.<BR>
50</P>
51
52<hr><p>CONFIDENTIAL</p></body>
53</html>
54