Recording to AMR using CMMFDevSound

Login to reply to this topic.
Tue, 2006-05-02 12:51
Joined: 2006-02-17
Forum posts: 7
Hi guys,
We're having a lot of problems trying to record and play AMR directly. Here is a small snippet of code of the initialization:

The recorder:
TRAP(initError, iMMFDevSound->InitializeL(*this, TFourCC(KMMFFourCCCodeAMR), EMMFStateRecording)); 

The player:
TRAP(initError, iMMFDevSound->InitializeL(*this, TFourCC(KMMFFourCCCodeAMR), EMMFStatePlaying)); 

It seems to record ok, and we write all the 32byte chunks into a file. However, when we try to play the recorded file we get an Error -2 in the player.

We have tried a ton of different options for the player and recorder, but nothing seems to work.

Does anybody have some working code we can look at - we'll really appreciate it..

Mon, 2007-03-05 20:27
Joined: 2007-03-05
Forum posts: 1
Re: Recording to AMR using CMMFDevSound
There is an engine that works fine, is in the platform UIQ but is esencially the same in S60, try see this http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/symbian/p_audioplaying_addedto_uiq3apps.jsp

it works to me.

feedback your experiencie.

sorry for the english.

 Grin
  • Login to reply to this topic.