WENCGetEncodeBufferSize

Syntax

#include <wenc.h>

#define WENCGetEncodeBufferSize( nSampleNum )  (((nSampleNum) + 1) / 2)

Arguments

nSampleNum Represents the number of samples to be encoded.

Return Values

Returns the amount of memory (in bytes) required by the output destination for encoded data.

Description

WENCGetEncodeBufferSize 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 nSampleNum for the controller speaker.

See Also

None.

Revision History

2006/09/07 Deleted the 4 bytes for when setting WENC_FLAG_LAST.
2006/08/10 Initial version.


CONFIDENTIAL