I have a hard time to debug for AAC Encoding problem.
Our PCM Sample source is 2channel, 32bit inputBitsperSample, S32_LE type , 44.1Khz.
When I record sample sound, and play well.
But, PCM sample go through the AAC encoding engine. thers is some encoding error.
==========================================================================
ERROR (alg_audEnc.c|ALG_audEncRun|300): AUDENC1_process() failed with error (-1 ext: 0x0)
AUDIO ENCODER STATUS MESSAGE: In data used (4096) Bytes Generated(0)
ERROR (audioThr.c|AUDIO_audioTskRun|523): Audio encode error !!
ERROR (audioThr.c|AUDIO_audioTskMain|759): AUDIO_audioTskRun(
==========================================================================
This is my parameter for AAC Encoder.
pObj->audParams.aud_params.size = sizeof(AUDENC1_Params);
pObj->audParams.aud_params.sampleRate = prm->sampRate;
pObj->audParams.aud_params.bitRate = prm->bitRate;
pObj->audParams.aud_params.channelMode = IAUDIO_2_0;
pObj->audParams.aud_params.dataEndianness = XDM_LE_32;
pObj->audParams.aud_params.encMode = IAUDIO_CBR;
pObj->audParams.aud_params.inputFormat = IAUDIO_INTERLEAVED;
pObj->audParams.aud_params.inputBitsPerSample = 32;
pObj->audParams.aud_params.maxBitRate = 256000;
when inputBitsPerSample is 16 , then no error out, but, Sound is very poor.
and intputBitsPerSample is 32 , there is error out
I use APRO 4.1.0 sdk version.
Does't support 32bit PCM Data for AAC encoding ??