Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Problem facing in playing a wav file while running an app in background

0 replies · 3,504 views · Started 12 August 2005

Hi
I am trying to answer a call at the same moment I am trying to play a wav file also
And Here is my source code

Thing is that when I am running the app in BackGround ,it able to Play the wav file sometimes and sometimes It just able to play the part of wave file with an od noise

But When I am running it in foreground it is always playing fine .

So my query is what is the problem in playing the wav file while the app is running in background ,How can I overcome this ?

And my second query is My code is working once means I able to answer the first incoming call only How can I answer each and evrey call what I ahve to add and where to add

waiting for ur help

Thanx a lot

void CActiveClass::RunL()
{
if (iStatus == KErrNone)
{


if(iNotfySignal==0)
{
iNotfySignal=1;
User::LeaveIfError(iCall.OpenExistingCall(iLine, iCallName));

User::After(5000000);
iCall.AnswerIncomingCall(iStatus);
SetActive();


}
else if(iNotfySignal==1)
{

iPlayerAdapter->PlayL();



}






}
}