mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-25 15:18:11 +00:00
adapt to mediastreamer2
This commit is contained in:
parent
623554f2f0
commit
816ab8dfbd
4 changed files with 25 additions and 2 deletions
|
|
@ -1829,6 +1829,25 @@ int linphone_core_set_video_codecs(LinphoneCore *lc, MSList *codecs){
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable RFC3389 generic confort noise algorithm (CN payload type).
|
||||
* It is disabled by default, because this algorithm is only relevant for legacy codecs (PCMU, PCMA, G722).
|
||||
* @param lc the LinphoneCore
|
||||
* @param enabled TRUE if enabled, FALSE otherwise.
|
||||
**/
|
||||
void linphone_core_enable_generic_confort_noise(LinphoneCore *lc, bool_t enabled){
|
||||
lp_config_set_int(lc->config, "misc", "use_cn", enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns enablement of RFC3389 generic confort noise algorithm.
|
||||
* @param lc the LinphoneCore
|
||||
* @return TRUE or FALSE.
|
||||
**/
|
||||
bool_t linphone_core_generic_confort_noise_enabled(const LinphoneCore *lc){
|
||||
return lp_config_get_int(lc->config, "misc", "use_cn", FALSE);
|
||||
}
|
||||
|
||||
const MSList * linphone_core_get_friend_list(const LinphoneCore *lc)
|
||||
{
|
||||
return lc->friends;
|
||||
|
|
|
|||
|
|
@ -2278,6 +2278,10 @@ LINPHONE_PUBLIC const MSList *linphone_core_get_video_codecs(const LinphoneCore
|
|||
|
||||
LINPHONE_PUBLIC int linphone_core_set_video_codecs(LinphoneCore *lc, MSList *codecs);
|
||||
|
||||
LINPHONE_PUBLIC void linphone_core_enable_generic_confort_noise(LinphoneCore *lc, bool_t enabled);
|
||||
|
||||
LINPHONE_PUBLIC bool_t linphone_core_generic_confort_noise_enabled(const LinphoneCore *lc);
|
||||
|
||||
/**
|
||||
* Tells whether the specified payload type is enabled.
|
||||
* @param[in] lc #LinphoneCore object.
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit cf926c3127bec00dde2bcabef9c1591cd39a6c8f
|
||||
Subproject commit 5ae1633ed1a025f40e3887950524663b892251e4
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
#include "lpconfig.h"
|
||||
#include "private.h"
|
||||
#include "liblinphone_tester.h"
|
||||
#include "mediastreamer2/dsptools.h"
|
||||
#include "mediastreamer2/msutils.h"
|
||||
#include "belle-sip/sipstack.h"
|
||||
|
||||
#ifdef WIN32
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue