49#if defined(_WIN32) && !defined(_WIN32_WCE)
51#elif defined(_WIN32) && defined(_WIN32_WCE) && defined(ARM)
53#elif defined(_WIN32) && defined(WINCE_EMULATOR)
55#elif defined (__arm) && defined (__ARMCC_VERSION)
57#elif defined(_SYMBIAN) && defined(__WINS__)
59#elif defined(__GNUC__) && defined(__arm__)
61#elif defined(__GNUC__) && defined(__i386__)
63#elif defined(__GNUC__) && defined(__amd64__)
65#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__POWERPC__))
67#elif defined(__GNUC__) && defined(__APPLE__)
69#elif defined(_OPENWAVE_SIMULATOR) || defined(_OPENWAVE_ARMULATOR)
71#elif defined(_SOLARIS) && !defined(__GNUC__)
73#elif defined(ARDUINO) || defined(ESP32) || defined(ESP_PLATFORM) || defined(__ZEPHYR__)
76#error No platform defined. See valid options in aacdec.h
79#ifndef USE_DEFAULT_STDLIB
80#define USE_DEFAULT_STDLIB
95#define AAC_MAX_NCHANS 2
97#define AAC_MAX_NSAMPS 1024
98#define AAC_MAINBUF_SIZE (768 * AAC_MAX_NCHANS)
100#define AAC_NUM_PROFILES 3
101#define AAC_PROFILE_MP 0
102#define AAC_PROFILE_LC 1
103#define AAC_PROFILE_SSR 2
105#define AAC_ENABLE_MPEG4
163#ifdef HELIX_CONFIG_AAC_GENERATE_TRIGTABS_FLOAT
164int AACInitTrigtabsFloat(
void);
165void AACFreeTrigtabsFloat(
void);
void AACGetLastFrameInfo(HAACDecoder hAACDecoder, AACFrameInfo *aacFrameInfo)
Definition aacdec.c:167
int AACSetRawBlockParams(HAACDecoder hAACDecoder, int copyLast, AACFrameInfo *aacFrameInfo)
Definition aacdec.c:214
@ ERR_AAC_SBR_BITSTREAM
Definition aacdec.h:127
@ ERR_AAC_STEREO_PROCESS
Definition aacdec.h:119
@ ERR_AAC_SBR_PCM_FORMAT
Definition aacdec.h:129
@ ERR_AAC_SBR_DATA
Definition aacdec.h:128
@ ERR_AAC_MPEG4_UNSUPPORTED
Definition aacdec.h:114
@ ERR_AAC_SBR_SINGLERATE_UNSUPPORTED
Definition aacdec.h:131
@ ERR_AAC_CHANNEL_MAP
Definition aacdec.h:115
@ ERR_AAC_SBR_NCHANS_TOO_HIGH
Definition aacdec.h:130
@ ERR_AAC_TNS
Definition aacdec.h:122
@ ERR_AAC_SBR_INIT
Definition aacdec.h:126
@ ERR_AAC_INVALID_ADIF_HEADER
Definition aacdec.h:112
@ ERR_AAC_INVALID_FRAME
Definition aacdec.h:113
@ ERR_AAC_INDATA_UNDERFLOW
Definition aacdec.h:109
@ ERR_AAC_PNS
Definition aacdec.h:120
@ ERR_AAC_RAWBLOCK_PARAMS
Definition aacdec.h:133
@ ERR_AAC_IMDCT
Definition aacdec.h:123
@ ERR_AAC_DEQUANT
Definition aacdec.h:118
@ ERR_AAC_SYNTAX_ELEMENT
Definition aacdec.h:116
@ ERR_AAC_SHORT_BLOCK_DEINT
Definition aacdec.h:121
@ ERR_AAC_UNKNOWN
Definition aacdec.h:135
@ ERR_AAC_NCHANS_TOO_HIGH
Definition aacdec.h:124
@ ERR_AAC_NONE
Definition aacdec.h:108
@ ERR_AAC_INVALID_ADTS_HEADER
Definition aacdec.h:111
@ ERR_AAC_NULL_POINTER
Definition aacdec.h:110
struct _AACFrameInfo AACFrameInfo
HAACDecoder AACInitDecoderPre(void *ptr, int sz)
Definition aacdec.c:84
int AACFindSyncWord(unsigned char *buf, int nBytes)
Definition aacdec.c:139
int AACFlushCodec(HAACDecoder hAACDecoder)
Definition aacdec.c:239
void AACFreeDecoder(HAACDecoder hAACDecoder)
Definition aacdec.c:113
HAACDecoder AACInitDecoder(void)
Definition aacdec.c:66
int AACDecode(HAACDecoder hAACDecoder, unsigned char **inbuf, int *bytesLeft, short *outbuf)
Definition aacdec.c:291
void * HAACDecoder
Definition aacdec.h:150
int bitsPerSample
Definition aacdec.h:143
int bitRate
Definition aacdec.h:139
int outputSamps
Definition aacdec.h:144
int tnsUsed
Definition aacdec.h:146
int profile
Definition aacdec.h:145
int pnsUsed
Definition aacdec.h:147
int nChans
Definition aacdec.h:140
int sampRateCore
Definition aacdec.h:141
int sampRateOut
Definition aacdec.h:142