while running this code it shows me the error code -5
whats wrong with this .

also it it mandatory that both pcm and amr file should exist first.

LIT(KConvertFilepcm,"c:\\sbr.pcm");
_LIT(KConvertFileAmr,"c:\\xyz.amr");


TBuf<4906> filename1;
TBuf<4096> filename2;
filename1 = KConvertFilepcm;
filename2 = KConvertFileAmr;
TMdaFileClipLocation theLocation(filename2);
TMdaClipFormat iFormat = TMdaRawAudioClipFormat();
TMdaAudioDataSettings settings;
settings.Query();
settings.iSampleRate = 8000;
settings.iChannels = 1;
settings.iVolume = settings.iMaxVolume;
TRAPD( err,iAudioConverter->OpenL(filename1,
&theLocation,
&iFormat,
&TMdaSL16RawAudioCodec(),
&settings) );

// TMdaFileClipLocationiSourceFile;TMdaFileClipLocationiTargetFile;
// TMdaFileClipLocation theloc1(filename1);
// TMdaFileClipLocation theloc2(filename2);


/* iAudioConverter->OpenL(&theloc1,
&theloc2,KAudioControllerUid,KUidFormatAMRWrite
,KMMFFourCCCodeAMRNB);*/




if(iAudioConverter->State()==CMdaAudioConvertUtility::EOpen)
{

iAudioConverter->ConvertL();

}