mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/AudioResourceNotification.cpp
--- a/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/AudioResourceNotification.cpp Tue Aug 31 15:43:02 2010 +0300
+++ b/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/AudioResourceNotification.cpp Wed Sep 01 12:23:00 2010 +0100
@@ -28,7 +28,6 @@
{
console = aConsole;
logger = aLogger;
- iCallBackErr = KErrNone;
}
@@ -108,10 +107,7 @@
CleanupStack::PushL(selfObj);
CActiveScheduler::Start();
- if(selfObj->iCallBackErr != KErrNone)
- {
- error = selfObj->iCallBackErr;
- }
+
CleanupStack::PopAndDestroy(2); // schedule, selfObj
@@ -145,7 +141,7 @@
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)
{
@@ -209,15 +205,9 @@
recorder->WillResumePlay();
CActiveScheduler::Stop();
- return;
}
- if (aErrorCode != KErrNone)
- {
-
- CActiveScheduler::Stop();
- return;
- }
-
+
+ return;
}
@@ -232,7 +222,7 @@
}
-void CAudioResourceNotification::MarncResourceAvailable(TUid /*aNotificationEventId*/, const TDesC8 &/*aNotificationData*/)
+void CAudioResourceNotification::MarncResourceAvailable(TUid aNotificationEventId, const TDesC8 &aNotificationData)
{
logger->Log(_L("MarncResourceAvailable "));
}