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 17<h2>C Specification</h2> 18<BLOCKQUOTE> 19<pre><code>#include <revolution.h> 20 21#define AX_DSP_CYCLES_PBSYNC 2000 22#define AX_DSP_CYCLES (OS_BUS_CLOCK / 400) - AX_DSP_CYCLES_PBSYNC 23 24void AXSetMaxDspCycles(u32 cycles);</CODE></pre> 25</BLOCKQUOTE> 26<h2>Arguments</h2> 27 28<table border="1" cellpadding="3" cellspacing="0.1"> 29 <tr> 30<td width="120" bgcolor="#ffffe8"><em><strong><code>cycles</code></strong></em></td> 31<td width="520">Maximum DSP cycles for audio processing per frame. For a 121.5-MHz DSP, the maximum number of available cycles per 3-millisecond audio frame is 607,500.</td> 32 </tr> 33</table> 34 35<h2>Return Values</h2> 36 37<p>None.</p> 38 39<h2>Description</h2> 40 41<p><CODE>AXSetMaxDspCycles()</CODE> 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> 42 43<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 "complexity") of that voice.</p> 44<h2>See Also</h2> 45 46<p> 47<code><a href="AXGetMaxDSPCycles.html">AXGetMaxDspCycles</a><br> <a href="AXGetDSPCycles.html">AXGetDspCycles</a></code> 48</p> 49 50<h2>Revision History</h2> 51 52<P>2006/03/01 Initial version.</P> 53<hr> 54<P>CONFIDENTIAL</p> 55</BODY> 56</HTML> 57