MaoscPlayComplete is not called on Nokia 6600

Login to reply to this topic.
Wed, 2005-07-13 10:16
Joined: 2004-08-27
Forum posts: 4
I kindly ask Symbian professionals that know the solution to ask this post.

So the problem is that MaoscPlayComplete() function is never called on Nokia
6600 (and probably on other Nokia phones).

My application streams audio using CMdaAudioOutputStream. It works well on
emulator and Siemens SX1 phone. I tried Series 60 SDK 1.2 and Series 60 SDK
2.1 - the problem remains for Nokia 6600.

What should be done? May be to set a specific priority to audio stream or
stream a buffer of a specific size? I am confused...

Wed, 2005-07-13 10:55
Joined: 2005-05-09
Forum posts: 46
Re: MaoscPlayComplete is not called on Nokia 6600
CMdaAudioOutputStream should work on Nokia phones. MaoscPlayComplete() should get called after CMdaAudioOutputStream::Stop() gets called. Is Stop being called?

You should set the playback priority to 80. Don'y use priority normal (0) as you'll get interrupted by key tones, etc. on some phones.
Wed, 2005-07-13 17:50
Joined: 2004-08-27
Forum posts: 4
Re: MaoscPlayComplete is not called on Nokia 6600
Thanks Glen.Cook

No, CMdaAudioOutputStream::Stop() is not called.
In my case CMdaAudioOutputStream runs underflow, when no audio buffers are pending. In such case MaoscPlayComplete() should be called with KErrUnderflow. But it is not called on Nokia 6600, although the same code works well on Siemens SX1 an Emulator.

Yes, I tried to set priority to 80, but it didn't help.

I have seen people experienced the same problems but haven't found the solution yet.

May be You have more ideas?
Thu, 2005-07-14 10:25
Joined: 2005-05-09
Forum posts: 46
Re: MaoscPlayComplete is not called on Nokia 6600
I'd have a look at this document:
"How to successfully stream audio on Symbian OS v7.0s"

This document talks extensively about how to avoid underflows.

http://www.symbian.com/developer/techlib/papers/Audiostream/Audi0StreamSymbianOSv1.1.pdf

I hope this helps.
Wed, 2005-09-21 05:06
Joined: 2005-08-01
Forum posts: 44
audio stream problem in 6680
Hi all,

I see that you guys had successfully do audio streamming in series 2.1,

Well, I've already successfully streammed audio on 6600, I use
buffersize = 11200 (means 0.7 second)
buffercount = 10 (approximately 7 second total (11200 x 10 = 7 second))

Well, I tried to show the progress of each Read and MAisBufferCompleted, on 6600, each read and MAisBufferCompleted took 0.7 seconds, but on 6680, each of them took very fast (maybe about 0.0001 seconds)

So, if I play the audio streammed, 6600 took 7 seconds, while on 6680 only took less than 1 seconds

I tried to make the buffer bigger, but the maximum memory the phone could stand is only 1 seconds (but the sound while it is played is normal (so the output voice is not fast))


Does anyone know the solution of this? maybe setting the streamming first? or using different API?

please....tell me...anyone....

thanx in advance


Irma
  • Login to reply to this topic.