mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/AudioLoadingProgress.cpp
branchRCL_3
changeset 21 999b2818a0eb
parent 20 0ac9a5310753
equal deleted inserted replaced
20:0ac9a5310753 21:999b2818a0eb
   140 void CAudioLoadingProgress::MoscoStateChangeEvent(CBase* /*aObject*/, TInt aPreviousState, TInt aCurrentState, TInt aErrorCode)
   140 void CAudioLoadingProgress::MoscoStateChangeEvent(CBase* /*aObject*/, TInt aPreviousState, TInt aCurrentState, TInt aErrorCode)
   141 {
   141 {
   142 #ifdef _DEBUG
   142 #ifdef _DEBUG
   143     RDebug::Print (_L ("CAudioLoadingProgress::MoscoStateChangeEvent"));
   143     RDebug::Print (_L ("CAudioLoadingProgress::MoscoStateChangeEvent"));
   144 #endif
   144 #endif
   145 	TInt err = KErrNone;
   145     
   146 	callbackErr = KErrNone;
   146     callbackErr = aErrorCode;
   147 
   147 
       
   148     if (aErrorCode != KErrNone)
       
   149         {
       
   150 
       
   151         CActiveScheduler::Stop();
       
   152 
       
   153         }
   148 	logger->Log(_L("MoscoStateChangeEvent called, error: %d	prev: %d curr : %d"),aErrorCode,aPreviousState,aCurrentState);
   154 	logger->Log(_L("MoscoStateChangeEvent called, error: %d	prev: %d curr : %d"),aErrorCode,aPreviousState,aCurrentState);
   149 
   155 
   150     TInt aState = recorder->State();
   156     TInt aState = recorder->State();
   151     logger->Log(_L("Current State %d"), aState);
   157     logger->Log(_L("Current State %d"), aState);
   152 
   158