This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to calculate the OUTBUFSIZE and INBUFSIZE when capturing sound through AAC while the samplerate is 48000



/* Create an output buffer for encoded data */

hOutBuf = Buffer_create(OUTBUFSIZE , &bAttrs);

/* Create an input buffer for encoded data */

hInBuf = Buffer_create(INBUFSIZE , &bAttrs);

/* Encode the audio buffer */
if (Aenc1_process(hAe1, hInBuf, hOutBuf) < 0) {
ERR("Failed to encode audio buffer\n");
cleanup(THREAD_FAILURE);

}

Who can tell me that how to calculate the OUTBUFSIZE and INBUFSIZE when capturing sound through AAC while the samplerate is 48000?

Thank you!