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>axvpb.pb.type</title> 7<META http-equiv="Content-Type" content="text/html; charset=utf-8"> 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">axvpb.pb.type</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#define AX_PB_TYPE_NORMAL 0x0000 19#define AX_PB_TYPE_STREAM 0x0001 20 21u16 type; 22</pre></dd></dl> 23 24<h2>Description</h2> 25<p>The ADPCM hardware decoder supports features to accommodate looped ADPCM/PCM data. Software streaming (as in the <code>axstream</code> sample demo) is realized by appropriating these loop features.</p> 26 27<p>Though the same features are used, for software streaming of looped ADPCM data you need to make some minor changes to the process at the point where the loop is generated. <code>type</code> is used to differentiate these forms of playback for the AX library.</p> 28 29<p>For <code>type</code>, specify one of the following, depending on the form of ADPCM playback.</p> 30 31<table border="1" > 32 <tbody> 33 <tr> 34 <td align="center" bgcolor="#98FB98">Looped ADPCM data</td> 35<td>AX_PB_TYPE_NORMAL</td> 36 </tr> 37 <tr> 38 <td align="center" bgcolor="#F0E68C">Software streaming</td> 39<td>AX_PB_TYPE_STREAM</td> 40 </tr> 41 </tbody> 42</table> 43 44<p>To learn more about how processing differs depending on the ADPCM data playback form, see the description in <a href="AXPBADPCMLOOP_adpcmloop.html"><code>axvpb.pb.adpcmLoop(AXPBADPCMLOOP structure)</code></a>.</p> 45 46<p>For playback of 16-bit and 8-bit PCM data, the <code>type</code> value is ignored.</p> 47 48<p>The specification whether to use the loop features is set by the <code>loopFlag</code> member of <code>axvpb.pb.addr(AXPBADDR structure)</code>. When <code>AXPBADDR_LOOP_OFF</code> is set (to not use the loop features), the <code>type</code> value is ignored.</p> 49 50<p>Assert the <code>AX_SYNC_USER_TYPE</code> bit in the <code>axvpb.sync</code> member when <code>type</code> is changed.</p> 51 52<h2>See Also</h2> 53<p class="reference"> 54<a href="../Voice_Parameter_Blocks/sync.html">axvpb.sync</a><BR> <a href="AXPBADDR_addr.html">axvpb.pb.addr</a><BR> <a href="AXPBADPCMLOOP_adpcmloop.html">axvpb.pb.adpcmLoop</a><BR><a href="../Voice_Parameters/AXSetVoiceType.html">AXSetVoiceType</a><BR><a href="../Voice_Parameters/AXSetVoiceAddr.html">AXSetVoiceAddr</a><BR><a href="../Voice_Parameters/AXSetVoiceAdpcmLoop.html">AXSetVoiceAdpcmLoop</a> 55</p> 56 57<h2>Revision History</h2> 58<P> 592009/05/11 Revised <B>Description</B>.<br>2006/03/01 Initial version.<BR> 60</P> 61 62<hr><p>CONFIDENTIAL</p></body> 63</html> 64