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>C Specification</h2> 17 18<BLOCKQUOTE> 19<pre><code>#include <wenc.h> 20 21#define WENCGetEncodeBufferSize( nSampleNum ) (((nSampleNum) + 1) / 2 + 4)</code></pre> 22</BLOCKQUOTE> 23 24<h2>Arguments</h2> 25 26<table border="1" cellpadding="3" cellspacing="0.1"> 27 <tr> 28<td width="120" bgcolor="#ffffe8"><em><strong><code>nSampleNum</code></strong></em></td> 29<td width="520">Represents the number of samples to be encoded.</td> 30 </tr> 31</table> 32 33<h2>Return Values</h2> 34 35<p>Returns the amount of memory (in bytes) required by the output destination for encoded data.</p> 36 37<H2>Description</H2> 38 39<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 <code>nSampleNum</code> for the controller speaker.</p> 40 41<H2>See Also</H2> 42 43<H2>Revision History</H2> 44 45<p>08/10/2006 Initial version.</p> 46 47<hr> 48<P>CONFIDENTIAL</p> 49</BODY> 50</HTML>