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>AXInitProfile</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">AXInitProfile</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/ax.h> 19 20typedef struct _AXPROFILE 21{ 22 OSTime axFrameStart; 23 OSTime auxProcessingStart; 24 OSTime auxProcessingEnd; 25 OSTime userCallbackStart; 26 OSTime userCallbackEnd; 27 OSTime axFrameEnd; 28 u32 axNumVoices; 29} AXPROFILE; 30 31void AXInitProfile(AXPROFILE *profile, u32 maxProfiles); 32</pre></dd></dl> 33 34<h2>Arguments</h2> 35<TABLE class="arguments" border="1" > 36 <tr> 37<th>profile</th> 38<td>Pointer to one or more <code>AXPROFILE</code> data structures allocated by the user application.</td> 39 </tr> 40 <tr> 41<th>maxProfiles</th> 42<td>Number of <code>AXPROFILE</code> structures allocated.</td> 43 </tr> 44</table> 45 46<h2>Return Values</h2> 47<p>None.</p> 48 49<h2>Description</h2> 50<p>Users can measure CPU usage for AX, AUX effects processing, and user callback functions on a per-frame basis. The <code>AXInitProfile</code> function initializes AX runtime properties. The calling function must provide sufficient memory capacity for the specified <code>AXPROFILE</code> structures. CPU usage is stored in units of audio frames. In other words, the application must provide enough <code>AXPROFILE</code> structures only during the profile period.</p> 51 52<h2>See Also</h2> 53<p class="reference"> 54<a href="AXGetProfile.html">AXGetProfile</a> 55</p> 56 57<h2>Revision History</h2> 58<P> 592006/03/01 Initial version.<BR> 60</P> 61 62<hr><p>CONFIDENTIAL</p></body> 63</html> 64