mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/AudioLoadingProgress.cpp
equal
deleted
inserted
replaced
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 |
145 TInt err = KErrNone; |
146 callbackErr = aErrorCode; |
146 callbackErr = KErrNone; |
147 |
147 |
148 if (aErrorCode != KErrNone) |
|
149 { |
|
150 |
|
151 CActiveScheduler::Stop(); |
|
152 |
|
153 } |
|
154 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); |
155 |
149 |
156 TInt aState = recorder->State(); |
150 TInt aState = recorder->State(); |
157 logger->Log(_L("Current State %d"), aState); |
151 logger->Log(_L("Current State %d"), aState); |
158 |
152 |