View Full Version : Problem facing in playing a wav file while running an app in background


dtripathy
12-08-2005, 02:27 PM
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();



}






}
}