WENCGetEncodeBufferSize

Syntax

#include <cafe/wenc.h>

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

Parameters

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.

Do Not Call From

Background Do not call this function from the background.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.
Multiple Cores Do not call this function from more than one Core.

Revision History

2013-05-08 Automated cleanup pass.
2006-09-07 Deleted the 4 bytes for setting WENC_FLAG_LAST.
2006-08-10 Initial version.


CONFIDENTIAL