I am developing an application which wants me to encode/ decode audio clips in order to send them over GPRS.

I am using the AMR codec for that and trying the encode using CMdaAudioConvertUtility class as the means to convert raw audio into encoded one.

I am using the TMdaRawAmrAudioCodec object as the destination codec object.

After opening the CMdaAudioConvertUtility object, with the source and destination audio formats and codecs, when I call PlayL to start converting , I am getting a runtime error and the emulator terminates.

If anybody has used these classes or has solution to my problem, please let me know.

Further I am not sure that PlayL is the method used for conversion as It is derived from CMdaAudioClipUtility, which is a base class for CMdaAudioRecorderUtility as well.