devsound/a3fdevsound/src/devsoundadaptor/cdevaudiocontrol.cpp
branchRCL_3
changeset 7 94dbab0a2133
parent 0 40261b775718
child 8 bc06d8566074
equal deleted inserted replaced
3:f7d9134af83e 7:94dbab0a2133
   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