Hi,
We are using OMAPL138 in our project i.e. VoIP based system.
We are trying to use different codecs g711a/g711u/g723/g729 etc while encoding-decoding payload using McBSP interface.
But the problem we are facing in here is while using g729 codec:
codec_encParams = G729ENC_PARAMS;
myPortInfo->chanEnc = (ISPHENC1_Handle)SPHENC1_create(ce,g729encodecName,&codec_encParams);
codec_decParams = G729DEC_PARAMS;
myPortInfo->chanDec = (ISPHDEC1_Handle)SPHDEC1_create(ce,g729decodecName,&codec_decParams);
Encoding raw linear samples receive from McBSP TDM side using
inBufDesc.bufSize = 320;
outBufDesc.bufSize = 20;
inBufDesc.buf = myPortInfo->encodeIn;
outBufDesc.buf = myPortInfo->encodeOut;
/** Call the Extended IALG Method Encode to process the frame of codewords */
retval = SPHENC1_process(myPortInfo->chanEnc,&inBufDesc,&outBufDesc,&encInArgs,&encOutArgs);
Decoding encoded samples receive from IP side using
inBufDesc.bufSize = 20;
outBufDesc.bufSize = 320;
inBufDesc.buf = myPortInfo->decodeIn;
outBufDesc.buf = myPortInfo->decodeOut;
/* Call the Extended IALG Method Decode to process the frame of codewords */
retval = SPHDEC1_process((ISPHDEC1_Handle)myPortInfo->chanDec,&inBufDesc,&outBufDesc,&decInArgs,&decOutArgs);
But while encoding sample I shuold get 20bytes total out of that we get only 10Bytes encoded and rest I got as :
Payload: 758acfea0ebb05cac44700000000000000000000
Can anyone tell at which step I am missing any configuration?
Regards
Rishabh Jain