mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/CustomCommand.cpp
--- a/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/CustomCommand.cpp Tue Aug 31 15:43:02 2010 +0300
+++ b/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/CustomCommand.cpp Wed Sep 01 12:23:00 2010 +0100
@@ -28,7 +28,7 @@
{
console = aConsole;
logger = aLogger;
- iCallBackErr = KErrNone;
+
}
CCustomCommand::~CCustomCommand()
@@ -107,12 +107,8 @@
CleanupStack::PushL(selfObj);
CActiveScheduler::Start();
-
- if(selfObj->iCallBackErr != KErrNone)
- {
- error = selfObj->iCallBackErr;
- }
-
+
+
CleanupStack::PopAndDestroy(2); // schedule, selfObj
return error;
@@ -141,16 +137,13 @@
#ifdef _DEBUG
RDebug::Print (_L ("CCustomCommand::MoscoStateChangeEvent"));
#endif
-
+ TInt err = KErrNone;
logger->Log(_L("MoscoStateChangeEvent called, error: %d prev: %d curr : %d"),aErrorCode,aPreviousState,aCurrentState);
-
- iCallBackErr = aErrorCode;
-
+
TUint bitRate = recorder->SourceBitRateL();
logger->Log(_L("SourceBitRateL %d "),bitRate);
-
-
+
if (recorder && aErrorCode == KErrNone && aCurrentState == CMdaAudioClipUtility::EOpen && aPreviousState == 0)
{
@@ -244,12 +237,6 @@
recorder->WillResumePlay();
CActiveScheduler::Stop();
}
- if(aErrorCode != KErrNone)
- {
-
- CActiveScheduler::Stop();
-
- }
return;