HEAACDECOpen

Syntax

#include <cafe/aacdec.h>

s32 HEAACDECOpen( void *memPtr,
                  s32 memSize,
                  HEAACDEC_AAC_INFO *aacInfo);

Parameters

memPtr The working memory address (Input).
memSize Working memory size (Input).
aacInfo Pointer to the decoding conditions (Input).

Return Values

A return value of HEAACDEC_RET_OK indicates success and any other return value indicates failure. For more information, see Error Codes.

Description

Initializes each type of memory, initializes this library, and sets the decoding conditions.

Before calling this function, have your application allocate working memory and audio data memory. For information about the memory sizes that should be allocated, see Memory.

Maintain the working memory and audio data memory until the HEAACDECClose completion process ends.

See section Input Specifications for the values that can be set for decoding conditions and Decoding Conditions for more information about the decoding conditions.

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.

See Also

HEAACDECBegin
HEAACDECExecute
HEAACDECEnd
HEAACDECClose
HEAACDECRestart
HEAACDECMemoryRequirement

Revision History

2014/07/14 Initial version.


CONFIDENTIAL