MaoscPlayComplete is not called on Nokia 6600
| Wed, 2005-07-13 10:16 | |
|
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... |
|






Forum posts: 46
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.
Forum posts: 4
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?
Forum posts: 46
"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.
Forum posts: 44
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