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 17<h2>C Specification</h2> 18<BLOCKQUOTE> 19<pre><code>#include <revolution.h> 20 21#define AX_PB_TYPE_NORMAL 0x0000 22#define AX_PB_TYPE_STREAM 0x0001 //no-loop context programming for ADPCM 23 24void AXSetVoiceType(AXVPB *pvpb, u32 type);</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>pvpb</code></strong></em></td> 31<td width="520">Pointer to the specified voice.</td> 32 </tr> 33 <tr> 34<td width="120" bgcolor="#ffffe8"><em><strong><code>type</code></strong></em></td> 35<td width="520">Type of voice. Valid types are:<br> 36 <table border="1" cellspacing="0.1" width="500"> 37 <tr> 38<td width="150"><code>AX_PB_TYPE_NORMAL</code></td> 39<td width="350">This type is the default.<br></td> 40 </tr> 41 <tr> 42<td width="150"><code>AX_PB_TYPE_STREAM</code></td> 43<td width="350">Set this type for ADPCM stream voices that do not use loop context.</td> 44 </tr> 45 </table> 46 </td> 47 </tr> 48</table> 49 50<h2>Return Values</h2> 51 52<p>None.</p> 53 54<h2>Description</h2> 55 56<p><code>AXSetVoiceType()</code> sets the voice <em>type</em> for the specified voice. This function also asserts the appropriate synchronization flags in <code>axvpb.sync</code>.</p> 57 58<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> 59 60<h2>See Also</h2> 61 62<p> 63<code><a href="../Parameter_Blocks/type.html">axvpb.pb.type</a></code> 64</p> 65 66<h2>Revision History</h2> 67 68<P>2006/03/01 Initial version.</P> 69 70<hr> 71<P>CONFIDENTIAL</p> 72</BODY> 73</HTML> 74