1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7<title>EncodeAdpcmData</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/snd/Overview.html">snd</a>::<a href="../../../nn/snd/CTR/Overview.html">CTR</a>::EncodeAdpcmData</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14void EncodeAdpcmData( 15 s16 * pInput, 16 u8 * pOutput, 17 s32 nSamples, 18 s32 sampleRate, 19 s32 loopStart, 20 s32 loopEnd, 21 DspsndAdpcmHeader * pInfo 22); 23</pre> 24 </div> 25<h2>Arguments</h2> 26 <div class="section"> 27 <table class="arguments"> 28 <thead> 29 <tr> 30 <td width="15" /> 31<th>Name</th> 32<td>Description</td> 33 </tr> 34 </thead> 35 <tr> 36<td>in</td> 37<th>pInput</th> 38<td>Address of the input buffer.</td> 39 </tr> 40 <tr> 41<td>out</td> 42<th>pOutput</th> 43<td>Address of the output buffer (must be 4-byte aligned).</td> 44 </tr> 45 <tr> 46<td>in</td> 47<th>nSamples</th> 48<td>Number of input samples.</td> 49 </tr> 50 <tr> 51<td>in</td> 52<th>sampleRate</th> 53<td>Sampling frequency.</td> 54 </tr> 55 <tr> 56<td>in</td> 57<th>loopStart</th> 58<td>Position of the starting sample for loop playback. (Starts from 0.)</td> 59 </tr> 60 <tr> 61<td>in</td> 62<th>loopEnd</th> 63<td>Position of the ending sample for loop playback. (Starts from 0.)</td> 64 </tr> 65 <tr> 66<td>out</td> 67<th>pInfo</th> 68<td>Address of the header structure.</td> 69 </tr> </table> 70 </div> 71<h2>Return Values</h2> 72 <div class="section"> 73None. 74 </div> 75<h2>Description</h2> 76 <div class="section"> 77<p>Encodes 16-bit PCM data into DSP-ADPCM format.</p><!-- write here --></div> 78<h2>Revision History</h2> 79 <div class="section"> 80 <dl class="history"> 81 <dt>2010/06/14</dt> 82<dd>Initial version.<br /> 83 </dd> 84 </dl> 85 </div> 86 <hr><p>CONFIDENTIAL</p></body> 87</html> 88