forked from mirrors/linphone-iphone
experiment unstandart gsm codec running at 11khz
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@681 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
4695e9cddf
commit
cdfe54852b
2 changed files with 30 additions and 23 deletions
|
|
@ -37,10 +37,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#define HAVE_EXOSIP_GET_VERSION 1
|
||||
#endif
|
||||
|
||||
#define UNSTANDART_GSM_11K 1
|
||||
|
||||
static const char *liblinphone_version=LIBLINPHONE_VERSION;
|
||||
|
||||
|
|
@ -666,6 +663,10 @@ static PayloadType * linphone_mp4v_es=NULL;
|
|||
static PayloadType * linphone_h263_old=NULL;
|
||||
#endif
|
||||
|
||||
#ifdef UNSTANDART_GSM_11K
|
||||
static PayloadType *gsm_11k=NULL;
|
||||
#endif
|
||||
|
||||
void linphone_core_init (LinphoneCore * lc, const LinphoneCoreVTable *vtable, const char *config_path, void * userdata)
|
||||
{
|
||||
memset (lc, 0, sizeof (LinphoneCore));
|
||||
|
|
@ -705,6 +706,12 @@ void linphone_core_init (LinphoneCore * lc, const LinphoneCoreVTable *vtable, co
|
|||
rtp_profile_set_payload(&av_profile,102,&payload_type_h264);
|
||||
#endif
|
||||
|
||||
#ifdef UNSTANDART_GSM_11K
|
||||
gsm_11k=payload_type_clone(&payload_type_gsm);
|
||||
gsm_11k->clock_rate=11025;
|
||||
rtp_profile_set_payload(&av_profile,96,gsm_11k);
|
||||
#endif
|
||||
|
||||
ms_init();
|
||||
|
||||
lc->config=lp_config_new(config_path);
|
||||
|
|
|
|||
|
|
@ -10,16 +10,16 @@
|
|||
<projectname>linphone</projectname>
|
||||
<projectdirectory>.</projectdirectory>
|
||||
<absoluteprojectpath>false</absoluteprojectpath>
|
||||
<description/>
|
||||
<defaultencoding/>
|
||||
<description></description>
|
||||
<defaultencoding></defaultencoding>
|
||||
</general>
|
||||
<kdevcustomproject>
|
||||
<run>
|
||||
<directoryradio>executable</directoryradio>
|
||||
<mainprogram>/home/smorlat/sources/git/linphone/linphone</mainprogram>
|
||||
<programargs/>
|
||||
<globaldebugarguments/>
|
||||
<globalcwd>/home/smorlat/sources/git/linphone/linphone</globalcwd>
|
||||
<mainprogram>gtk-glade/linphone-3</mainprogram>
|
||||
<programargs></programargs>
|
||||
<globaldebugarguments></globaldebugarguments>
|
||||
<globalcwd></globalcwd>
|
||||
<useglobalprogram>false</useglobalprogram>
|
||||
<terminal>false</terminal>
|
||||
<autocompile>false</autocompile>
|
||||
|
|
@ -391,13 +391,13 @@
|
|||
</blacklist>
|
||||
<build>
|
||||
<buildtool>make</buildtool>
|
||||
<builddir/>
|
||||
<builddir></builddir>
|
||||
</build>
|
||||
<other>
|
||||
<prio>0</prio>
|
||||
<otherbin/>
|
||||
<defaulttarget/>
|
||||
<otheroptions/>
|
||||
<otherbin></otherbin>
|
||||
<defaulttarget></defaulttarget>
|
||||
<otheroptions></otheroptions>
|
||||
<selectedenvironment>default</selectedenvironment>
|
||||
<environments>
|
||||
<default/>
|
||||
|
|
@ -408,9 +408,9 @@
|
|||
<numberofjobs>0</numberofjobs>
|
||||
<prio>0</prio>
|
||||
<dontact>false</dontact>
|
||||
<makebin/>
|
||||
<defaulttarget/>
|
||||
<makeoptions/>
|
||||
<makebin></makebin>
|
||||
<defaulttarget></defaulttarget>
|
||||
<makeoptions></makeoptions>
|
||||
<selectedenvironment>default</selectedenvironment>
|
||||
<environments>
|
||||
<default/>
|
||||
|
|
@ -419,11 +419,11 @@
|
|||
</kdevcustomproject>
|
||||
<kdevdebugger>
|
||||
<general>
|
||||
<dbgshell/>
|
||||
<gdbpath/>
|
||||
<configGdbScript/>
|
||||
<runShellScript/>
|
||||
<runGdbScript/>
|
||||
<dbgshell></dbgshell>
|
||||
<gdbpath></gdbpath>
|
||||
<configGdbScript></configGdbScript>
|
||||
<runShellScript></runShellScript>
|
||||
<runGdbScript></runGdbScript>
|
||||
<breakonloadinglibs>true</breakonloadinglibs>
|
||||
<separatetty>false</separatetty>
|
||||
<floatingtoolbar>false</floatingtoolbar>
|
||||
|
|
@ -526,7 +526,7 @@
|
|||
<includePaths>.;</includePaths>
|
||||
</codecompletion>
|
||||
<creategettersetter>
|
||||
<prefixGet/>
|
||||
<prefixGet></prefixGet>
|
||||
<prefixSet>set</prefixSet>
|
||||
<prefixVariable>m_,_</prefixVariable>
|
||||
<parameterName>theValue</parameterName>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue