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 17<h2>C Specification</h2> 18<BLOCKQUOTE> 19<pre><code>#include <revolution.h> 20 21typedef struct _AXPROFILE 22{ 23 24 OSTime axFrameStart; 25 OSTime auxProcessingStart; 26 OSTime auxProcessingEnd; 27 OSTime userCallbackStart; 28 OSTime userCallbackEnd; 29 OSTime axFrameEnd; 30 u32 axNumVoices; 31 32} AXPROFILE; 33 34void AXInitProfile(AXPROFILE *profile, u32 maxProfiles);</CODE></pre> 35</BLOCKQUOTE> 36<h2>Arguments</h2> 37 38<table border="1" cellpadding="3" cellspacing="0.1"> 39 <tr> 40<td width="120" bgcolor="#ffffe8"><em><strong><code>profile</code></strong></em></td> 41<td width="520">Pointer to one or more <code>AXPROFILE</code> data structures allocated by the user application.</td> 42 </tr> 43 <tr> 44<td width="120" bgcolor="#ffffe8"><em><strong><code>maxProfiles</code></strong></em></td> 45<td width="520">Number of <code>AXPROFILE</code> structures allocated.</td> 46 </tr> 47</table> 48 49<h2>Return Values</h2> 50 51<p>None.</p> 52 53<h2>Description</h2> 54 55<p>Users can measure CPU usage for AX, AUX effects processing, and user callback functions on a per-frame basis. The function <code>AXInitProfile()</code> 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> 56<h2>See Also</h2> 57 58<p> 59<code><a href="AXGetProfile.html">AXGetProfile</a></code> 60</p> 61 62<h2>Revision History</h2> 63 64<P>2006/03/01 Initial version.</P> 65<hr> 66<P>CONFIDENTIAL</p> 67</BODY> 68</HTML> 69