mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/RecordFormats.cpp
--- a/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/RecordFormats.cpp Tue Aug 31 15:43:02 2010 +0300
+++ b/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/RecordFormats.cpp Wed Sep 01 12:23:00 2010 +0100
@@ -29,7 +29,6 @@
{
console = aConsole;
logger = aLogger;
- iCallBackErr = KErrNone;
}
CRecordFormats::~CRecordFormats()
@@ -82,8 +81,7 @@
#endif
logger->Log(_L("MoscoStateChangeEvent called, error: %d prev: %d curr : %d"),aErrorCode,aPreviousState,aCurrentState);
- iCallBackErr = aErrorCode;
-
+
if (recorder && aErrorCode == KErrNone && aCurrentState == CMdaAudioClipUtility::EOpen)
{
TRAPD(err3, recorder->AudioRecorderControllerImplementationInformationL());
@@ -108,7 +106,6 @@
TInt CRecordFormats::RunTestL(CTestModuleIf* aConsole, CStifLogger *aLogger, CStifSectionParser* aParser, TInt* /*clipCounter*/)
{
- TInt error = KErrNone;
aLogger->Log(_L("Creating scheduler"));
CActiveScheduler* scheduler = new (ELeave) CActiveScheduler;
@@ -139,11 +136,8 @@
CActiveScheduler::Start();
CleanupStack::PopAndDestroy(2);
-
- if(selfObj->iCallBackErr != KErrNone)
- error = selfObj->iCallBackErr;
-
- return error;
+
+ return KErrNone;
}