Hello, check apsclientsession.h: // (' ', 'A', 'M', 'R') const TUint32 KMCPFourCCIdAMRNB = 0x524d4120; // ('G', '7', '1', '1') const TUint32 KMCPFourCCIdG711 = 0x31313747; // ('G', '7', '2', '9') const TUint32 KMCPFourCCIdG729 = 0x39323747; // ('i', 'L', 'B', 'C') const TUint32 KMCPFourCCIdILBC = 0x43424c49; // ( 'D', 'T', 'M', 'F' ) const TUint32 KMCPFourCCIdDTMF = 0x464d5444; and void CPjAudioEngine::ConstructL() { iSettings.iFourCC = TFourCC(KMCPFourCCIdG711); // <- change to KMCPFourCCIdG729 iSettings.iGlobal = APP_UID; iSettings.iPriority = TMdaPriority(100); iSettings.iPreference = TMdaPriorityPreference(0x05210001); iSettings.iSettings.iChannels = EMMFMono; iSettings.iSettings.iSampleRate = EMMFSampleRate8000Hz; iSettings.iSettings.iVolume = 0; } There is also an example for APS, you can figure it out about how to use all codecs with APS. Pai On Sun, Jan 11, 2009 at 10:36 AM, S. M. Nazmul Hasan (Opu) <apus29 at gmail.com > wrote: > Hi Pai, > > Can you please tell me if i want to g729 from Aps what should i need to do? > > in the line of encoder mode > > iSession.SetEncoderMode(EALawOr20ms); > > is for g711 but i saw no encoding mode for g729 . should i block those line > if i want to use g729? > > Thanks > > > > On Sat, Jan 10, 2009 at 12:19 AM, Pai Peng <sipaipv6 at gmail.com> wrote: > >> Hi, >> >> >> in source symbian_sound_aps.cpp: >> >> void CPjAudioEngine::RecCb(TAPSCommBuffer &buffer) >> { >> ... >> buf[i] = pjmedia_alaw2linear(iBuffer[i]); >> ... >> } >> >> TInt CPjAudioEngine::StartStreamL() >> { >> .... >> iSession.SetEncoderMode(EALawOr20ms); >> iSession.SetDecoderMode(EALawOr20ms); >> ... >> } >> >> audio is in G711-A Format. >> >> >> The APS supports the following codecs: AMR, G711, G729 and iLBC. >> >> If you like use other codec for encoding or decoding, you should change >> the SetEncoderMode() and SetDecoderMode(). >> >> >> Pai >> >> >> >> On Fri, Jan 9, 2009 at 5:54 PM, Rawshan Iajdani <iajdani at provati.com>wrote: >> >>> How does APS implementation works in Symbian_ua? >>> >>> Does g711,gsm,speex all works fine? >>> >>> >>> >>> APS->G711->PCM->gsm >>> >>> Or >>> >>> APS->gsm?? >>> >>> >>> >>> Does it do the transcoding or it just only works for g711 and not gsm and >>> speex? >>> >>> >>> >>> thanks >>> >>> >>> >>> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip at lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >>> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip at lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > > > -- > S. M. Nazmul Hasan Opu > Software Engineer > R & D Application > Dhaka, Bangladesh > Mob: +880 1712 901 764 > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090112/43901a05/attachment.html>