problem with the EVRC state

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

 



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



[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