/* 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!