devsound/a3fdevsound/src/devsoundadaptor/mmfdevsoundadaptationbody.cpp
changeset 15 c1e808730d6c
parent 0 40261b775718
child 23 545d349d14da
equal deleted inserted replaced
13:efebd1779a59 15:c1e808730d6c
  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 	}