not able to simultaneously record and play audio in 6680

Login to reply to this topic.
Mon, 2006-04-10 10:09
Joined: 2005-06-23
Forum posts: 17
 Hi,

I am making an application where once I start recording after some time I want to playback an mp3 while the recording is going on. But as soon as I start playing the playout completes with error code -13.
6680 supports full duplex and accordingly it should be able to record and play simultaneously. But its not happening.
I am using CMdaAudioPlayerUtility for playing the audio and CMdaAudioRecorderUtility for recording purpose. When I start recording and while recording if I start playing the playout completes with Error code -13.

I have set the recorder priority to 80.

iRecorder = CMdaAudioRecorderUtility::NewL(*this, NULL, 80, EMdaPriorityPreferenceTimeAndQuality);
I am recording in Gsm wave codec

iPlayer = CMdaAudioPlayerUtility::NewL(*this);
I am playing an mp3 file.

If I dont set the priority then if I start playing while the recording is on then the recording stops.
Why does the recording and playout cant go on simultaneously when the device supports full duplex.

I also tried using CMdaAudioInputstream and CMdaAudioOutputstream but then again when I start playing when the recording is going on the playout completes immediately with error code -13.

Is there any other API,s by which I can record and play simultaneously in 6680 as this device supports full duplex audio. Plz help....
   
regards,
Santosh Shetty.

Mon, 2006-04-10 12:39
Joined: 2006-01-23
Forum posts: 11
Re: not able to simultaneously record and play audio in 6680
Hi ,

The error you reported seems to not a problem with the player or recorder ,it is wrong parameters  Huh ,The error seems to KErrDied due to some wrong i/o operation.

regards
Sivakumar

Tue, 2006-04-11 06:18
Joined: 2005-06-23
Forum posts: 17
Re: not able to simultaneously record and play audio in 6680
Hi,

But if I stop the recorder and then start playing the voice then ont get this error -13.

regards,
Santosh Shetty.
Wed, 2006-04-12 09:23
Joined: 2005-01-29
Forum posts: 17
Re: not able to simultaneously record and play audio in 6680
Use the class CMMFDevSound, possibly it will help you.
  • Login to reply to this topic.