Facing audio breaks in the application
| Wed, 2008-08-27 16:56 | |
|
Hi, In my application I have a view which is launched when a song is playing. I am getting bufffer(s) from a server and I am able to play the bufffer(s) using CMdaAudioOutputStream. When I am in the same view without doing any operation the song is playing fine without audio breaks, but in the following cases I am facing the audio breaks: Hope the problem which I am facing is clear, Can anyone please help me out in solving this problem???? Does anyone have an idea how to avoid this audio breaks in my application??? Thanks in advance......
|
|






Forum posts: 2006
Are you using CMdaAudioOutputStream from inside your application (I mean, same thread as the UI) ?
If yes, forget about it. You have to redesign your application so that the audio rendering is done in a separate thread.
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 4
Hi eric,
Thanks alot for the reply. The class ABC in which I am using CMdaAudioOutputStream is not derived from CActive class. So from this I can tell you that I am not using separate thread for this audio functionality. Hope my understanding here is correct, if not please correct me. If this is the problem with my application can you please guide me how I can make this audio functionality as a separate thread in my application?? If possible please provide an outline code for this requirement. Waiting for your valuable reply!!!!!!!!!
Thanks again.............
Forum posts: 672
Using CActive does not mean that threads are used. Quite the opposite. And you can find threading examples in all SDKs, just dig them out.