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>AXSetVoiceType</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">AXSetVoiceType</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/ax.h> 19 20#define AX_PB_TYPE_NORMAL 0x0000 21#define AX_PB_TYPE_STREAM 0x0001 //no-loop context programming for ADPCM 22 23void AXSetVoiceType(AXVPB *pvpb, u32 type); 24</pre></dd></dl> 25 26<h2>Arguments</h2> 27<TABLE class="arguments" border="1" > 28 <tr> 29<th>pvpb</th> 30<td>Pointer to the specified voice.</td> 31 </tr> 32 <tr> 33<th>type</th> 34<td>Type of voice. Valid types are:<br> 35 <TABLE class="arguments" border="1" > 36 <tr> 37<th>AX_PB_TYPE_NORMAL</th> 38<td>This type is the default.<br></td> 39 </tr> 40 <tr> 41<th>AX_PB_TYPE_STREAM</th> 42<td>Set this type for ADPCM stream voices that do not use loop context.</td> 43 </tr> 44 </table> 45 </td> 46 </tr> 47</table> 48 49<h2>Return Values</h2> 50<p>None.</p> 51 52<h2>Description</h2> 53<p>The <code>AXSetVoiceType</code> function sets the voice <B>type</B> for the specified voice. This function also asserts the synchronization flag corresponding to <code>axvpb.sync</code>.</p> 54 55<p><B>Note:</B></strong></em> You must program the ADPCM predictor and scale based on frame data in the ADPCM stream for each buffer loop in ARAM.</p> 56 57<h2>See Also</h2> 58<p class="reference"> 59<a href="../Parameter_Blocks/type.html">axvpb.pb.type</a> 60</p> 61 62<h2>Revision History</h2> 63<P> 642006/03/01 Initial version.<BR> 65</P> 66 67<hr><p>CONFIDENTIAL</p></body> 68</html> 69