Skip to content

PCM buffer allocation at the decoder

The output PCM buffer is defined at the decoder application as

int16_t pcmBuf[MAX_OUTPUT_PCM_BUFFER_SIZE];

but it is defined as

int16_t *pcmBuf = NULL;

at the encoder application and allocated dynamically.

It is proposed to use the encoder logic at the decoder too.