Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:58, 26 November 2007.

How to convert PCM to AMR

From Forum Nokia Wiki

// Uid of PCM16toAMR codec is 0x101FAF68
CMMFCodec* codec = CMMFCodec::NewL(TUid::Uid(0x101FAF68));
CleanupStack::PushL(codec);
CMMFDescriptorBuffer* srcbuf = CMMFDescriptorBuffer::NewL(320);
CleanupStack::PushL(srcbuf);
// Copy your PCM frame data into srcbuf, for example: srcbuf->Data().Copy(pcmbuf);
CMMFDescriptorBuffer* dstbuf = CMMFDescriptorBuffer::NewL(32);
CleanupStack::PushL(dstbuf);
TCodecProcessResult result = codec->ProcessL(*srcbuf, *dstbuf):
// now the dstbuf contains an AMR frame data
CleanupStack::PopAndDestroy(dstbuf);
CleanupStack::PopAndDestroy(srcbuf);
CleanupStack::PopAndDestroy(codec);
[[Category:]]
Related Discussions
Thread Thread Starter Forum Replies Last Post
tools drzejmsbuond Tools and SDK Feedback 5 2007-09-24 07:15
AMR to PCM conversation stuck mitay2 Symbian Media (Graphics & Sounds) 0 2005-02-16 16:01
RTP Stack and VoIP fcobsb General Symbian C++ 0 2006-02-14 22:49
5140 and AMR ringing tone? kr0nic Mobile Java Media (Graphics & Sounds) 0 2004-07-19 17:39
Audio Capture and Streaming to a Server pmcerlean Symbian Media (Graphics & Sounds) 3 2007-07-09 15:02
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZaudioQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX