Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
06575db0
Commit
06575db0
authored
Aug 20, 2015
by
johan
Browse files
Add codec2 capabilities (when mscodec2 plugin is present)
- update oRTP and ms2
parent
6b9fe077
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
2 deletions
+15
-2
build/android/Android.mk
build/android/Android.mk
+5
-0
coreapi/linphonecore.c
coreapi/linphonecore.c
+2
-0
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+6
-0
mediastreamer2
mediastreamer2
+1
-1
oRTP
oRTP
+1
-1
No files found.
build/android/Android.mk
View file @
06575db0
...
...
@@ -173,6 +173,11 @@ LOCAL_CFLAGS += -DHAVE_SILK
LOCAL_STATIC_LIBRARIES
+=
libmssilk
endif
ifeq
($(BUILD_CODEC2),1)
LOCAL_CFLAGS
+=
-DHAVE_CODEC2
LOCAL_STATIC_LIBRARIES
+=
libcodec2 libmscodec2
endif
ifneq
($(BUILD_WEBRTC_AECM)$(BUILD_WEBRTC_ISAC),00)
LOCAL_CFLAGS
+=
-DHAVE_WEBRTC
LOCAL_STATIC_LIBRARIES
+=
libmswebrtc
...
...
coreapi/linphonecore.c
View file @
06575db0
...
...
@@ -1565,6 +1565,8 @@ static void linphone_core_register_default_codecs(LinphoneCore *lc){
linphone_core_register_payload_type
(
lc
,
&
payload_type_aal2_g726_24
,
NULL
,
FALSE
);
linphone_core_register_payload_type
(
lc
,
&
payload_type_aal2_g726_32
,
NULL
,
FALSE
);
linphone_core_register_payload_type
(
lc
,
&
payload_type_aal2_g726_40
,
NULL
,
FALSE
);
linphone_core_register_payload_type
(
lc
,
&
payload_type_codec2
,
NULL
,
FALSE
);
...
...
coreapi/linphonecore_jni.cc
View file @
06575db0
...
...
@@ -58,6 +58,9 @@ extern "C" void libmsbcg729_init();
#ifdef HAVE_WEBRTC
extern
"C"
void
libmswebrtc_init
();
#endif
#ifdef HAVE_CODEC2
extern
"C"
void
libmscodec2_init
();
#endif
#include <belle-sip/wakelock.h>
#endif
/*ANDROID*/
...
...
@@ -1142,6 +1145,9 @@ extern "C" jlong Java_org_linphone_core_LinphoneCoreImpl_newLinphoneCore(JNIEnv*
#ifdef HAVE_WEBRTC
libmswebrtc_init
();
#endif
#ifdef HAVE_CODEC2
libmscodec2_init
();
#endif
jobject
core
=
env
->
NewGlobalRef
(
thiz
);
jlong
nativePtr
=
(
jlong
)
linphone_core_new
(
vTable
,
userConfig
,
factoryConfig
,
core
);
...
...
mediastreamer2
@
588b22db
Subproject commit
07eeb876c23402422d23efa6880420fa0c90d35
a
Subproject commit
588b22dba73d04fa523f14623fd9f38cb08cc86
a
oRTP
@
8409812b
Subproject commit
714ae33119397055bc0509ea78a3651a3d1b5
8d
5
Subproject commit
8409812bdf023e5f0b10a2d0644d7bf96603d
8d
2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment