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