Hi folks,
I have a project to record sound in Nokia phone. The main goal of my project is record the sound in small size, so WAV cannot be use. I have read some information from forum and make a test. Following is part of the source code. It can record sound in amr format, however it works in Nokia 6600, but not in 7610 and N70.
Any idea?
Besides, where I can find the UID for others clip format? such as ogg, mp3 or others compressed audio formation for MMF? I want to try others format incase amr not work.
Thanks
In ConstructL:
iMdaAudioRecorderUtility = CMdaAudioRecorderUtility::NewL(*this, 0, 80, EMdaPriorityPreferenceQuality);
OpenFile:
const TUid KMMFExControllerUID = {0x101F5022};
const TUid KMMFExDesFormatUID = {0x101FAF66};
const TUint32 KMMFFourCCCodeAMR = {0x524d4120};
iMdaAudioRecorderUtility->OpenFileL(aFileName,KMMFExControllerUID,KMMFExControllerUID,KMMFExDesFormatUID,KMMFFourCCCodeAMR);
where aFileName is E:\test.amr
Record:
// Set maximum gain for recording
iMdaAudioRecorderUtility->SetGain(iMdaAudioRecorderUtility->MaxGain());
// Delete current audio sample from beginning of file
// CropL doesn't work according forum nokia know issues
// iMdaAudioRecorderUtility->CropL();
iMdaAudioRecorderUtility->SetPosition(TTimeIntervalMicroSeconds(0));
iMdaAudioRecorderUtility->RecordL();



