I sampled the raw PCM data from the device, encoded it through libfaac to an audio file in ".aac" format(ADTS format), and when I sampled it in 16KHZ or 41KHZ the encoded ".aac" file played faster than normal. What's the reason?
The parameter configuration is as follows:
pConfiguration->inputFormat = FAAC_INPUT_16BIT;
pConfiguration->outputFormat = 1; /*0 - raw; 1 - ADTS*/
pConfiguration->bitRate = 16000;
pConfiguration->useTns = 0;
pConfiguration->allowMidside = 1;
pConfiguration->shortctl = SHORTCTL_NORMAL;
pConfiguration->aacObjectType = LOW;
pConfiguration->mpegVersion = MPEG4;
//pConfiguration->useLfe = 1;