]> sjero.net Git - linphone/commitdiff
add missing jni
authorSimon Morlat <simon.morlat@linphone.org>
Wed, 22 Jun 2011 11:06:13 +0000 (13:06 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Wed, 22 Jun 2011 11:06:13 +0000 (13:06 +0200)
coreapi/linphonecore_jni.cc
java/common/org/linphone/core/LinphoneCore.java

index 2492e8f61e25ee1afe2c575e4bea37208d78d242..f858f8d1719198470ca5d05ae636befb0c799a50 100644 (file)
@@ -1206,6 +1206,15 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setDownloadBandwidth(JNI
 extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setUploadBandwidth(JNIEnv *env, jobject thiz, jlong lc, jint bw){
        linphone_core_set_upload_bandwidth((LinphoneCore *)lc, (int) bw);
 }
+
+extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setDownloadPtime(JNIEnv *env, jobject thiz, jlong lc, jint ptime){
+       linphone_core_set_download_ptime((LinphoneCore *)lc, (int) ptime);
+}
+
+extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setUploadPtime(JNIEnv *env, jobject thiz, jlong lc, jint ptime){
+       linphone_core_set_upload_ptime((LinphoneCore *)lc, (int) ptime);
+}
+
 extern "C" int Java_org_linphone_core_LinphoneProxyConfigImpl_getState(JNIEnv*  env,jobject thiz,jlong ptr) {
        return (int) linphone_proxy_config_get_state((const LinphoneProxyConfig *) ptr);
 }
index 1c7dd2ff990596dfa8bb56015c3933dcf93c6fed..4afe7182ffab96653cd2af52a7889e4f9fc8ab28 100644 (file)
@@ -531,6 +531,18 @@ public interface LinphoneCore {
        void setUploadBandwidth(int bw);
 
        void setDownloadBandwidth(int bw);
+       
+       /**
+        * Sets audio packetization interval suggested for remote end.
+        * @param ptime packetization interval in milliseconds
+        */
+       void setDownloadPtime(int ptime);
+       
+       /**
+        * Sets audio packetization interval sent to remote end.
+        * @param ptime packetization interval in milliseconds
+        */
+       void setUploadPtime(int ptime);
 
        void setPreferredVideoSize(VideoSize vSize);