diff -r d5f04de580b7 -r b74061f7f3d2 devsound/a3fdevsound/src/devsoundadaptor/mmfdevsoundadaptationbody.cpp --- a/devsound/a3fdevsound/src/devsoundadaptor/mmfdevsoundadaptationbody.cpp Wed Mar 31 23:56:23 2010 +0300 +++ b/devsound/a3fdevsound/src/devsoundadaptor/mmfdevsoundadaptationbody.cpp Wed Apr 14 17:32:53 2010 +0300 @@ -1243,3 +1243,15 @@ ASSERT(iDevAudio); iDevAudio->GetAudioControl()->BufferErrorEvent(); } + +void CMMFDevSoundAdaptation::CBody::RollbackAdaptorActiveStateToBeforeCommit() + { + DP_CONTEXT(CMMFDevSoundAdaptation::CBody::RollbackAdaptorActiveStateToBeforeCommit *CD1*, CtxDevSound, DPLOCAL); + DP_IN(); + TDevSoundAdaptorState previousState = iDevAudio->PreviousState(); + // Set previous state to the active state set after state changing Commit call + iDevAudio->SetPreviousState(iDevAudio->ActiveState()); + // Set active state to the previous state set before state changing Commit call + iDevAudio->SetActiveState(previousState); + DP_OUT(); + }