devsound/a3fdevsound/src/devsoundadaptor/mmfdevsoundadaptationbody.cpp
branchRCL_3
changeset 12 b74061f7f3d2
parent 0 40261b775718
child 23 545d349d14da
equal deleted inserted replaced
11:d5f04de580b7 12:b74061f7f3d2
  1241 void CMMFDevSoundAdaptation::CBody::BufferErrorEvent()
  1241 void CMMFDevSoundAdaptation::CBody::BufferErrorEvent()
  1242 	{
  1242 	{
  1243 	ASSERT(iDevAudio);
  1243 	ASSERT(iDevAudio);
  1244 	iDevAudio->GetAudioControl()->BufferErrorEvent();
  1244 	iDevAudio->GetAudioControl()->BufferErrorEvent();
  1245 	}
  1245 	}
       
  1246 
       
  1247 void CMMFDevSoundAdaptation::CBody::RollbackAdaptorActiveStateToBeforeCommit()
       
  1248 	{
       
  1249 	DP_CONTEXT(CMMFDevSoundAdaptation::CBody::RollbackAdaptorActiveStateToBeforeCommit *CD1*, CtxDevSound, DPLOCAL);
       
  1250 	DP_IN();
       
  1251 	TDevSoundAdaptorState previousState = iDevAudio->PreviousState();
       
  1252 	// Set previous state to the active state set after state changing Commit call
       
  1253 	iDevAudio->SetPreviousState(iDevAudio->ActiveState());
       
  1254 	// Set active state to the previous state set before state changing Commit call
       
  1255 	iDevAudio->SetActiveState(previousState);
       
  1256 	DP_OUT();
       
  1257 	}