mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/RecordDataFormat.cpp
--- a/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/RecordDataFormat.cpp Wed Sep 01 12:23:00 2010 +0100
+++ b/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/RecordDataFormat.cpp Tue Sep 14 22:21:33 2010 +0300
@@ -122,7 +122,7 @@
CActiveScheduler::Start();
- if (error == KErrNone)
+ if (selfObj->callbackErr != KErrNone)
{
error = selfObj->callbackErr;
}
@@ -160,7 +160,6 @@
if (recorder && aErrorCode == KErrNone && aCurrentState == CMdaAudioClipUtility::EOpen && aPreviousState == 0)
{
-
if (dataFormat == KFormatWav)
{
logger->Log(_L("SetDestinationFormatL(KMmfUidFormatWAVWrite)"));
@@ -174,13 +173,11 @@
CActiveScheduler::Stop();
return;
}
-
if (recorder->DestinationFormatL() != id)
{
logger->Log(_L("Retrieved format is not same as set format") );
callbackErr = KErrOutOfRange;
}
-
}
else
{
@@ -209,6 +206,10 @@
}*/
}
}
+ if (aErrorCode != KErrNone)
+ {
+ callbackErr = aErrorCode;
+ }
CActiveScheduler::Stop();
return;