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