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>WENCGetEncodeBufferSize</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">WENCGetEncodeBufferSize</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;wenc.h&gt;
19
20#define WENCGetEncodeBufferSize( nSampleNum )  (((nSampleNum) + 1) / 2)
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<th>nSampleNum</th>
27<td>Represents the number of samples to be encoded.</td>
28  </tr>
29</table>
30
31<h2>Return Values</h2>
32<p>Returns the amount of memory (in bytes) required by the output destination for encoded data.</p>
33
34<H2>Description</H2>
35<p><code>WENCGetEncodeBufferSize</code> returns the amount of memory (in bytes) required by the output destination for encoded data when encoding the number of samples of audio data given by <SPAN class="argument">nSampleNum</SPAN> for the controller speaker.</p>
36
37<H2>See Also</H2>
38<p>None.</p>
39
40<H2>Revision History</H2>
41<p>
422006/09/07 Deleted the 4 bytes for when setting <CODE>WENC_FLAG_LAST</CODE>.<br>2006/08/10 Initial version.<BR>
43</p>
44
45<hr><p>CONFIDENTIAL</p></body>
46</html>