//Program crashes here because 320 is smaller the the AMR file size, I also increased it. I read that AMR frame size should be 320.
CMMFDescriptorBuffer* srcbuf = CMMFDescriptorBuffer::NewL(320);
// Copy your PCM frame data into srcbuf, for example:
CMMFDescriptorBuffer* dstbuf = CMMFDescriptorBuffer::NewL(320);
//Does not process the AMR data, I get the result.iStatus as EDistNotFilled.
TCodecProcessResult result = codec->ProcessL(*srcbuf, *dstbuf);
// dstbuf is empty.
Has anyone solved this? I get EDstNotFilled or EProcessIncomplete errors. I tried giving an output of 1 for EProcessComplete, 2 for EDstNotFilled, and 3 for EProcessIncomplete. My program gives an output of 2 most of the time, 3 every now and then, and 1 least of the time. This is what happens when I try to convert AMR to PCM16.