devsound/a3fdevsound/src/devsoundadaptor/cdevaudiocontrol.cpp
branchRCL_3
changeset 8 bc06d8566074
parent 7 94dbab0a2133
child 12 b74061f7f3d2
equal deleted inserted replaced
7:94dbab0a2133 8:bc06d8566074
   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 	        if(iIgnoreAsyncOpComplete)
   940 	    if(iIgnoreAsyncOpComplete)
   941 			{
   941 			{
   942             	    	iAdaptationObserver->PreemptionFinishedCallbackReceived(ETrue);
   942             iAdaptationObserver->PreemptionFinishedCallbackReceived(ETrue);
   943 		    	iIgnoreAsyncOpComplete = EFalse;
   943 		    iIgnoreAsyncOpComplete = EFalse;
   944             	    	}
   944    	    	}
   945         	else
   945         else
   946             	    	{
   946             {
   947                     	iAdaptationObserver->AsynchronousOperationComplete(aError, ETrue);
   947             iAdaptationObserver->AsynchronousOperationComplete(aError, ETrue);
   948                     	}
   948            	}
   949 		}
   949 		}
   950 	else if(aEvent == KUidA3FContextPreEmption || aEvent == KUidA3FContextPreEmptedCommit)
   950 	else if(aEvent == KUidA3FContextPreEmption || aEvent == KUidA3FContextPreEmptedCommit)
   951 		{
   951 		{
   952 		
   952 		
   953 		//Preemption during the below states should complete invoke AsynOperationComplete
   953 		//Preemption during the below states should complete invoke AsynOperationComplete