void CAudioPlayerEngine::MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& /*aDuration*/)
if (aError == KErrNone)
iPlayerFile->SetVolume(iPlayerFile->MaxVolume() / KToneVolumeDenominator);
As soon as the iPlayerFile is constructed with the KAmrFile, Framework should call MapcInitComplete(..) function, where I should get kErrNone. Function always returned with error for AMR file. But If I use Wave file in:
iPlayerFile = CMdaAudioPlayerUtility::NewFilePlayerL(KWavFile,*this);
Then it plays the file. Meaning MapcInitComplete function is called with KErrNone. It seems like it can not evet open the AMR file. I tested MP3 which does not work as well.