Live555二次开发中的PCM转编码AAC,已调试成功!!!
void Encode_Init( )
{
faacEncConfigurationPtr myFormat;
inputPcmSamples = 0;
maxOutputPcmBytes = 0;
readSize = 0;
out_len = 0;
g_hEncoder = faacEncOpen(8000, 1, &inputPcmSamples, &maxOutputPcmBytes);
myFormat = faacEncGetCurrentConfiguration(g_hEncoder);
myFormat->inputFormat = FAAC_INPUT_16BIT;//mark by ycs
myFormat->outputFormat =1;/*1;*/
//myFormat->aacObjectType = LOW;
//myFormat->mpegVersion = MPEG4;
//myFormat->useLfe = 0;
//myFormat->quantqual =100;
//myFormat->bandWidth = 0;
myFormat->bitRate = 0;
//myFormat->shortctl = SHORTCTL_NORMAL;
myFormat->allowMidside = 1;
myFormat->aacObjectType = LOW;
myFormat->mpegVersion = MPEG4;
myFormat->useTns = 1;
myFormat-&