Facing audio breaks in the application

Login to reply to this topic.
Wed, 2008-08-27 16:56
Joined: 2007-06-13
Forum posts: 4

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:
Open the "options" of the view
Click on the back of the view (my application has multiple views)
Send the application to the background
Bring the application to the foreground, etc........

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......


Wed, 2008-08-27 18:59
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2006
Re: Facing audio breaks in the application

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

Thu, 2008-08-28 05:49
Joined: 2007-06-13
Forum posts: 4
Re: Facing audio breaks in the application

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.............

Thu, 2008-08-28 08:03
Joined: 2003-12-05
Forum posts: 672
Re: Facing audio breaks in the application

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.

  • Login to reply to this topic.