]> sjero.net Git - linphone/commitdiff
add ec calibrator
authorJehan Monnier <jehan.monnier@linphone.org>
Tue, 25 Jan 2011 14:45:36 +0000 (15:45 +0100)
committerJehan Monnier <jehan.monnier@linphone.org>
Tue, 25 Jan 2011 14:45:36 +0000 (15:45 +0100)
LinphoneCoreImpl.java

index 3c21fe0f6edffbd18fcb79a187c8369ba57470d7..2f33278f9214403c8825fa4aaf87752f0ec510b3 100644 (file)
@@ -88,6 +88,9 @@ class LinphoneCoreImpl implements LinphoneCore {
        private native void setRing(long nativePtr, String path);
        private native String getRing(long nativePtr);
        private native long[] listVideoPayloadTypes(long nativePtr);
+       private native void enableKeepAlive(long nativePtr,boolean enable);
+       private native boolean isKeepAliveEnabled(long nativePtr);
+       private native int startEchoCalibration(long nativePtr,Object data);
        
        
        private static final String TAG = "LinphoneCore"; 
@@ -428,4 +431,14 @@ class LinphoneCoreImpl implements LinphoneCore {
        public boolean isNetworkReachable() {
                throw new RuntimeException("Not implemented");
        }
+       public void enableKeepAlive(boolean enable) {
+               enableKeepAlive(nativePtr,enable);
+               
+       }
+       public boolean isKeepAliveEnabled() {
+               return isKeepAliveEnabled(nativePtr);
+       }
+       public void startEchoCalibration(Object data) throws LinphoneCoreException {
+               startEchoCalibration(nativePtr, data);
+       }
 }