devsound/a3fdevsound/src/devsoundadaptor/cdevaudiocontrol.cpp
changeset 13 efebd1779a59
parent 0 40261b775718
child 15 c1e808730d6c
equal deleted inserted replaced
0:40261b775718 13:efebd1779a59
   935 	DP_CONTEXT(CDevAudioControl::ContextEvent *CD1*, CtxDevSound, DPLOCAL);
   935 	DP_CONTEXT(CDevAudioControl::ContextEvent *CD1*, CtxDevSound, DPLOCAL);
   936 	DP_IN();
   936 	DP_IN();
   937 
   937 
   938 	if (aEvent == KUidA3FContextUpdateComplete)
   938 	if (aEvent == KUidA3FContextUpdateComplete)
   939 		{
   939 		{
   940 		iAdaptationObserver->AsynchronousOperationComplete(aError, ETrue);
   940 	    if(iIgnoreAsyncOpComplete)
       
   941 			{
       
   942             iAdaptationObserver->PreemptionFinishedCallbackReceived(ETrue);
       
   943 		    iIgnoreAsyncOpComplete = EFalse;
       
   944    	    	}
       
   945         else
       
   946             {
       
   947             iAdaptationObserver->AsynchronousOperationComplete(aError, ETrue);
       
   948            	}
   941 		}
   949 		}
   942 	else if(aEvent == KUidA3FContextPreEmption || aEvent == KUidA3FContextPreEmptedCommit)
   950 	else if(aEvent == KUidA3FContextPreEmption || aEvent == KUidA3FContextPreEmptedCommit)
   943 		{
   951 		{
   944 		
   952 		
   945 		//Preemption during the below states should complete invoke AsynOperationComplete
   953 		//Preemption during the below states should complete invoke AsynOperationComplete