我从设备中对原始 PCM 数据进行采样,通过 libfaac 将其编码为“.aac”格式(ADTS 格式)的音频文件,当我以 16KHZ 或 41KHZ 对其进行采样时,编码的“.aac”文件播放速度比正常速度快。什么原因?
参数配置如下:
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;