is CMdaAudioRecorderUtility not compitable with Nokia 3650/N-Gage

Login to reply to this topic.
Wed, 2005-08-24 12:23
Joined: 2005-06-11
Forum posts: 85
Hi....

I m trying to play soundfiles with CMdaAudioRecorderUtility .It is working fine with Nokia 6600 and Nokia 6680 but its not working with N-Gage and Nokia 3650.
The code snippet which I m using is as follows:

   iSoundBytesBuffer = HBufC8::NewL(orgSize);//orgSize is size of  sound file
   TPtr8 BufPtr(iSoundBytesBuffer->Des());
   myfile.Read(BufPtr,orgSize);
   iMdaAudioRecorderUtility->OpenDesL(BufPtr);
  //in moscoChangeevent I m calling
  iPlayer->PlayL();

the code is working fine except for N-3650 and N-Gage.....I m not getting what I m doing wrong in this....whether these phones are compitable are not with this API?
and ond thing more when does error KErrBadDescriptor occurs?

Please help...
Thanks in Advance...
Pankaj


Wise People talk because they have something to say . Fools talk because thay have to say somthing.


Thu, 2005-09-29 05:29
Joined: 2005-08-01
Forum posts: 44
CMdaAudioRecorderUtility problem in 6680
Hi all,

Does anyone know how to setting CMdaAudioRecorderUtility ?

I use CMdaAudioRecorderUtility to record voices in 6600, it went okay, the speed is normal.

But, when I use it in 6680 (the same program, the same settings)...the speed is not normal at all, it is much faster that in 6600 (playing mode)

here are my setting when playing
=========================================
CMdaAudioRecorderUtility* iMdaAudioRecorderUtility;


iMdaAudioRecorderUtility->SetAudioDeviceMode(CMdaAudioRecorderUtility::ELocal);
    iMdaAudioRecorderUtility->SetVolume(iMdaAudioRecorderUtility->MaxVolume() - (iMdaAudioRecorderUtility->MaxVolume() / 4));

iMdaAudioRecorderUtility->SetPosition(iPosition);
   
iMdaAudioRecorderUtility->PlayL();


here are my setting when recording
=========================================
iMdaAudioRecorderUtility->SetGain(iMdaAudioRecorderUtility->MaxGain());
   
iMdaAudioRecorderUtility->SetPosition(TTimeIntervalMicroSeconds(0));
   
iMdaAudioRecorderUtility->RecordL();


Could anyone please tell me the problem? I would appreciate it.

Best regards,

Irma
Thu, 2005-09-29 08:37
Joined: 2004-07-17
Forum posts: 110
Re: is CMdaAudioRecorderUtility not compitable with Nokia 3650/N
Pankaj, it's probably because you need to make the ButPtr a member of the class (ie. put it on the heap not the stack)
Mon, 2005-10-10 17:59
Joined: 2005-08-28
Forum posts: 17
Re: is CMdaAudioRecorderUtility not compitable with Nokia 3650/N
Hi,I check it again.
the fuction not stop at the RecordL(),but leave.
the errcode is -18.

but i still don't know what to do.for help!
  • Login to reply to this topic.