mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/RecordDataType.cpp
changeset 47 c2e43643db4c
parent 0 71ca22bcf22a
child 46 0ac9a5310753
equal deleted inserted replaced
42:1fa3fb47b1e3 47:c2e43643db4c
   105 
   105 
   106 
   106 
   107 	CleanupStack::PushL(selfObj);
   107 	CleanupStack::PushL(selfObj);
   108 
   108 
   109 	CActiveScheduler::Start();
   109 	CActiveScheduler::Start();
   110 
   110 	
       
   111 	if(selfObj->callbackErr != KErrNone)
       
   112 	    {
       
   113         error = selfObj->callbackErr;
       
   114 	    }
   111 
   115 
   112 	CleanupStack::PopAndDestroy(2); // schedule, selfObj
   116 	CleanupStack::PopAndDestroy(2); // schedule, selfObj
   113 
   117 
   114 	return error;
   118 	return error;
   115 }
   119 }
   135 void CRecordDataType::MoscoStateChangeEvent(CBase* /*aObject*/, TInt aPreviousState, TInt aCurrentState, TInt aErrorCode)
   139 void CRecordDataType::MoscoStateChangeEvent(CBase* /*aObject*/, TInt aPreviousState, TInt aCurrentState, TInt aErrorCode)
   136 {
   140 {
   137 #ifdef _DEBUG
   141 #ifdef _DEBUG
   138     RDebug::Print (_L ("CRecordDataType::MoscoStateChangeEvent"));
   142     RDebug::Print (_L ("CRecordDataType::MoscoStateChangeEvent"));
   139 #endif
   143 #endif
   140 	TInt err = KErrNone;
   144 	
   141 	callbackErr = KErrNone;
   145 	callbackErr = aErrorCode;
   142 	RArray<TFourCC> dataTypes;
   146 	RArray<TFourCC> dataTypes;
   143 
   147 
   144 	logger->Log(_L("MoscoStateChangeEvent called, error: %d	prev: %d curr : %d"),aErrorCode,aPreviousState,aCurrentState);
   148 	logger->Log(_L("MoscoStateChangeEvent called, error: %d	prev: %d curr : %d"),aErrorCode,aPreviousState,aCurrentState);
   145 
   149 
   146 
   150 
   205 	    logger->Log(_L("DestinationDataTypeL after play."));
   209 	    logger->Log(_L("DestinationDataTypeL after play."));
   206 
   210 
   207 
   211 
   208 		CActiveScheduler::Stop();
   212 		CActiveScheduler::Stop();
   209 	}
   213 	}
   210 
   214 	if (aErrorCode != KErrNone)
       
   215 	    {
       
   216 	    CActiveScheduler::Stop();
       
   217 	    
       
   218 	    }
   211 
   219 
   212 
   220 
   213 	return;
   221 	return;
   214 
   222 
   215 }
   223 }