problem with the EVRC state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is encoder/decoder handler for GSM codec.
You can design your own codec private data struct depent on your codec
driver api.
It will be easy to add another audio codec if you understand the code
clearly.

regards,
Gang

On Thu, Feb 5, 2009 at 10:02 PM, sameer prajapati <prasadnnr at gmail.com>wrote:

> Hi all,
> I'm trying to integrate EVRC with PJMEDIA Codec.But i hv a few issues with
> it.
>
> I got this link for adding new codec types in PJMEDIA.
>
> http://trac.pjsip.org/repos/wiki/FAQ#g729-g723
>
> its written here to simply replace gsm function with your codec
> library.But I'm not getting able to do it because of a few issues.
>
> 1. In GSM.c.......there is function              gsm_codec_open(
> pjmedia_codec *codec,   pjmedia_codec_param *attr )
>
>      In which,
>     struct gsm_data *gsm_data = (struct gsm_data*) codec->codec_data;
>
>      gsm_data->encoder = gsm_create();
>      if (!gsm_data->encoder)
>        return PJMEDIA_CODEC_EFAILED;
>
>    gsm_data->decoder = gsm_create();
>    if (!gsm_data->decoder)
>        return PJMEDIA_CODEC_EFAILED;
>
>
> The structure of GSM_DATA::
>
> /* GSM codec private data. */
> struct gsm_data
> {
>    struct gsm_state    *encoder;
>    struct gsm_state    *decoder;
>    pj_bool_t            plc_enabled;
> #if !PLC_DISABLED
>    pjmedia_plc         *plc;
> #endif
>    pj_bool_t            vad_enabled;
>    pjmedia_silence_det *vad;
>    pj_timestamp         last_tx;
> };
>
>
>
> Its gsm_state is defined for GSM.
>
> But I dont know how to define EVRC_STATE.
> Whether its really required or not?
> --
> Thanks & Regards.
> Sameer Prajapati
>
> Contact no.9953595878
>
>
>
> --
> Thanks & Regards.
> Sameer Prajapati | Software Engineer
> Global Logic,Noida
> Contact no.9953595878
>
> _______________________________________________
> 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/20090206/e242e85e/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux