I am trying to implement audio streaming in Nokia 6630 using symbian 8.0. I could do it successfully for PCM format. Now I want to convert the data to AMR.
I found this piece of code in one of the forum to convert PCM to AMR
// Uid of PCM16toAMR codec is 0x101FAF68
CMMFCodec* codec = CMMFCodec::NewL(TUid::Uid(0x101FAF68));
CMMFDescriptorBuffer* srcbuf = CMMFDescriptorBuffer::NewL(320);
// Copy your PCM frame data into srcbuf, for example: srcbuf->Data().Copy(pcmbuf);
CMMFDescriptorBuffer* dstbuf = CMMFDescriptorBuffer::NewL(32);
TCodecProcessResult result = codec->ProcessL(*srcbuf, *dstbuf):
// now the dstbuf contains an AMR frame data
But the CMMFCodec::ProcessL() is a pure virtual function which needs to be implemented. But I don't know what is the processing included in that? Can anyone help me please?