mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/CustomCommandAsync.cpp
--- a/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/CustomCommandAsync.cpp Tue Aug 31 15:43:02 2010 +0300
+++ b/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/CustomCommandAsync.cpp Wed Sep 01 12:23:00 2010 +0100
@@ -28,7 +28,6 @@
{
console = aConsole;
logger = aLogger;
- iCallBackErr = KErrNone;
}
@@ -109,10 +108,7 @@
CActiveScheduler::Start();
- if(selfObj->iCallBackErr != KErrNone)
- {
- error = selfObj->iCallBackErr;
- }
+
CleanupStack::PopAndDestroy(2); // schedule, selfObj
return error;
@@ -141,11 +137,12 @@
#ifdef _DEBUG
RDebug::Print (_L ("CCustomCommandAsync::MoscoStateChangeEvent"));
#endif
-
+ TInt err = KErrNone;
logger->Log(_L("MoscoStateChangeEvent called, error: %d prev: %d curr : %d"),aErrorCode,aPreviousState,aCurrentState);
- iCallBackErr = aErrorCode;
+
+
if (recorder && aErrorCode == KErrNone && aCurrentState == CMdaAudioClipUtility::EOpen && aPreviousState == 0)
{
TBuf8<25> dataFrom;
@@ -207,12 +204,6 @@
CActiveScheduler::Stop();
}
- if (aErrorCode != KErrNone)
- {
-
- CActiveScheduler::Stop();
-
- }
return;
}