Recoding in Amr format
| Thu, 2005-02-17 16:09 | |
|
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 .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 |
|






.
Forum posts: 239
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
Forum posts: 29
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?
Forum posts: 29
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.
Forum posts: 12
why does it not work with CropL()? any one who knows the reason?
Forum posts: 1
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);