CMMFCodec fails on N91

Login to reply to this topic.
Mon, 2006-09-11 11:54
Joined: 2006-09-11
Forum posts: 2
Hello,

I have a problem with N91. It works perfect on 6680 but below codes crash the application on N91.

codec = CMMFCodec::NewL(TUid::Uid(0x101FAF68));   //   amr compressor
codec2 = CMMFCodec::NewL(TUid::Uid(0x101FAF67));   //   amr decompressor


do anyone have an idea? are the Uid numbers changed? I need to use this method in order to compress amr frames into 13 bytes. is there an alternative way to do this?



Thu, 2006-09-21 16:15
Joined: 2006-05-10
Forum posts: 71
Re: CMMFCodec fails on N91
Hi,

       Yes. The behaviour that you are currently experiencing is correct. In most of the 3.0 devices they have intentionally dropped the SWCodec implementation. You can expect the CMMFCodec to work on some 3.0 devices like N80,E50.(to my knowledge).

        Its better to use CMMFDevsound for the purpose of encoding PCM16 to AMR or viceversa.
Thu, 2006-09-21 21:00
Joined: 2006-09-11
Forum posts: 2
Re: CMMFCodec fails on N91

mudhalvan thank you for your reply.

cmmfcodec is present in 3rd sdk. so why nokia remove it on new devices? i think the ability of cmmfcodec is very powerful and depreciating/removing it is a truely wrong decision. CMMFDevsound is the last class I haven't tried in this compression issue. I think I'll have to use it for nokia's will Smiley but unfortunately I could not find any example and as you should know using symbian classes just reading the sdk is nearly an impossible task. do anyone know an available example?

also I need to use the ear speaker instead of loud speaker. it is known to be possible in 2nd sdk but for 3rd. any ideas?

thank you very much for your help
Fri, 2006-09-22 06:10
Joined: 2006-05-10
Forum posts: 71
Re: CMMFCodec fails on N91
Hi,

      Even I dont know why they have dropped out SWCodec implementation in most of 3.0 CE phones.

      Regarding routing between speaker and earpiece, i dont think its possible just by specifying the correct priority and preference values that we used in 2.x devices. I heard that in 3rd edition devices,they had restricted the use of priority and preference values by making an ultimate requirement of proper VENDORID, which wont be available for normal 3rd party developers. so only if you have that particular vendorid, your priority and preference values will be taken in to account. otherwise it will be dropped and the default values will be used.

     But I remember seeing a post in forum nokia discussion board, where they have mentioned a class called CDrmPlayerUtility which is used for playing audio file in telephony uplink. so just give it a try by using the old priority and preference values(for audio routing) in that class and see whether your audio output is getting routed to the earpiece.

     
Thu, 2006-10-05 07:26
Joined: 2006-10-03
Forum posts: 24
Re: CMMFCodec fails on N91
hi mudhalvan

Is CMMFCodec just a base class used to create our own codecs or i can use this class and its members like processL directly to convert b/w two codecs. I m asking this bcoz processl() is a pure virtual function and needs to be implemented.

annie

Thu, 2006-10-05 13:39
Joined: 2006-05-10
Forum posts: 71
Re: CMMFCodec fails on N91
Hi Ruchi,

          As of now, I havent tried creating my own codec by deriving it from CMMFCodec.(even i dont know whether its possible). But u can very well use CMMFcodec for converting from one format to other.(like PCM16 to AMR and vice versa).

          There are lots of useful and informative posts in this forum regarding the usage of CMMFcodec and its limitations. Please go thru that.
Fri, 2006-10-06 11:22
Joined: 2006-10-03
Forum posts: 24
Re: CMMFCodec fails on N91
Thanks

But I have yet not got the answer to my question. Do i need to implement processL() and myself write the code to undego conversion bcoz processL() is a pure virtual function.

annie

Fri, 2006-10-06 11:36
Joined: 2006-05-10
Forum posts: 71
Re: CMMFCodec fails on N91
Hi Ruchi,

           Ofcourse you have to implement ProcessL() API. When you use CMMFCodec, ProcessL is the API which is going to server your purpose of converting source buffer of one format to destination buffer of another format.
Fri, 2006-10-06 11:49
Joined: 2006-10-03
Forum posts: 24
Re: CMMFCodec fails on N91
how should i convert from G.711 A law into PCM16 in processL()

annie

Fri, 2006-10-06 11:53
Joined: 2006-10-03
Forum posts: 24
Re: CMMFCodec fails on N91
how do i do that. I need to convert from G.711 A law into PCM16

annie

Fri, 2006-10-06 11:55
Joined: 2006-10-03
Forum posts: 24
Re: CMMFCodec fails on N91
hi mudhalvan

mmf\server\mmfcodec.h header file is not present in my sdk and hence i m not able to use the above classes. Why this is so Huh?

annie

Fri, 2006-10-06 12:01
Joined: 2006-05-10
Forum posts: 71
Re: CMMFCodec fails on N91
Hi Ruchi,

 Â           To my knowledge there is no publicly available information like fourCC code values or HardwareCodecUIDs for G.711 format.

 Â     Sorry that i cannot help you much on this...

           Which SDK are u currently using? if it is 3.0, then download the latest plugin from the following extensions plug-in where they have made some classes like CMMFCodec,CMMFDevsound,..etc public in series60 3rd edition.

http://forum.nokia.com/info/sw.nokia.com/id/48a93bd5-028a-4b3e-a0b1-148ff203b2b3/Extensions_plugin_S60_3rd_ed.html

ALL THE BEST...

Fri, 2006-10-06 13:14
Joined: 2006-10-03
Forum posts: 24
Re: CMMFCodec fails on N91
hi

thanks a lot. Ur advice worked.

annie

Mon, 2006-12-11 10:49
Joined: 2006-12-11
Forum posts: 4
Re: CMMFCodec fails on N91
Hi Ruchi, mudhalvan

I was also facing the problem of unavailablity of CMMFCodec class in sdk. but I found that by the discussion of you guys.
Thanks, Thanks alot.

But mudhalvan as you told that this will not convert on some devices with UIds.
Yes I am facing this problem on my E70.
You also told to use class CMMFDevsound but I am unable to do conversion or recording in AMR.
So, can you please send me a peace of code for conversion in AMR from PCM or visa versa using CMMFDevsound or recording in AMR  format.

I will be very thankful to you....

Vishal
  • Login to reply to this topic.