Recoding in Amr format

Login to reply to this topic.
Thu, 2005-02-17 16:09
Joined: 2005-02-17
Forum posts: 2
Hi every body,

I want to know if someone success recording in amr file with Nokia 6630 and Nokia 6600 and what I have to do to reach my goal?

The code given here allow you to play an amr file with the sound example given in the sdk ,  the problem that I can not record in amr format with it  Sad .



const TUid KMMFExControllerUID = {0x101F5022};
const TUid KMMFExDesFormatUID = {0x101FAF66};
const TUint32 KMMFFourCCCodeAMR = {0x524d4120};

_LIT(KRecorderFile, "C:\\System\\Apps\\Sound\\record.amr");


void CRecorderAdapter::ConstructL()
{
   iMdaAudioRecorderUtility = CMdaAudioRecorderUtility::NewL(*this);
   

   // Open an existing sample file for playback or recording,
   // causes MMdaObjectStateChangeObserver::MoscoStateChangeEvent to be called
  //iMdaAudioRecorderUtility->OpenFileL(KRecorderFile);
   iMdaAudioRecorderUtility->OpenFileL(KRecorderFile,KMMFExControllerUID,KMMFExControllerUID,KMMFExDesFormatUID,KMMFFourCCCodeAMR);
}



Please help me;

Thanks to all.

Houda

Mon, 2005-05-16 07:32
Joined: 2004-12-23
Forum posts: 239
Recoding in Amr format
hI houda

I am also encountering the same problem.files are not getting saved in amr format,rather showing a text format.I also use the same line of code which u have used.
Have u resolved it,If yes can u pls help me.
What changes should I do.
TIA

---------------
Bhatt Kavita

Mon, 2005-05-16 09:54
Joined: 2005-04-09
Forum posts: 29
Recoding in Amr format
i also have the same problem!
i'll really appreciate it, if someone can send source code for that job,
or an article would be very nice!
half of the questions in this audio forum is about
"amr recording, pcm to amr,  amr to pcm"
topics!
isn't there anyone who can write an article about these topics?
Mon, 2005-05-16 13:20
Joined: 2005-04-09
Forum posts: 29
Recoding in Amr format
i solved my problem at last,
i made the changes in sound example as *void advised in this message:
http://forum.newlc.com/viewtopic.php?t=5403

but when i tried to record, i was getting system errors on phone,
i commented out
//     iMdaAudioRecorderUtility->CropL();

line in RecordL(), and problem solved for me.
Mon, 2005-08-08 10:57
Joined: 2005-08-06
Forum posts: 12
Re: Recoding in Amr format
but without CropL(). the recording sound will append to the end of the file .
why does it not work with CropL()?  any one who knows the reason?
Tue, 2005-09-13 11:37
Joined: 2005-09-13
Forum posts: 1
Re: Recoding in Amr format
hi everybody, the CropL() problem has been pointed in one of the "known issues of series 60" pdf.
You can solve the problem by erasing the file, so there's no data to append new voice to.

My problem, instead, is that i can't still record in amr on 6630: by using openfileL i obtain a empty amr file or a kerrnotsupported. By opening a descriptor it won't record nothing (i tried saving the des content in a file using rfilewritestream, and , surprise!, a zero sized amr appear javascript:void(0); )

I'll continue my test for a while, but since i feel i tried everything, i'll quit soon javascript:void(0); So if anyone can help, that will be really appreciated javascript:void(0);
  • Login to reply to this topic.