mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Microphone gain & U/D bandwidth in JNI
This commit is contained in:
parent
b35e477465
commit
3ac2d110e5
3 changed files with 42 additions and 0 deletions
|
|
@ -703,6 +703,27 @@ extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_isNetworkStateReacha
|
|||
return (jboolean)linphone_core_is_network_reachable((LinphoneCore*)lc);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setUploadBandwidth(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong lc
|
||||
,jint bandwidth) {
|
||||
linphone_core_set_upload_bandwidth((LinphoneCore*)lc,bandwidth);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setDownloadBandwidth(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong lc
|
||||
,jint bandwidth) {
|
||||
linphone_core_set_download_bandwidth((LinphoneCore*)lc,bandwidth);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setMicrophoneGain(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong lc
|
||||
,jfloat gain) {
|
||||
linphone_core_set_microphone_gain_db((LinphoneCore*)lc,gain);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setPlaybackGain( JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong lc
|
||||
|
|
|
|||
|
|
@ -849,4 +849,10 @@ public interface LinphoneCore {
|
|||
* Once this time is elapsed (ringing included), the call is automatically hung up.
|
||||
**/
|
||||
void setInCallTimeout(int timeout);
|
||||
|
||||
void setUploadBandwidth(int bandwidth);
|
||||
|
||||
void setDownloadBandwidth(int bandwidth);
|
||||
|
||||
void setMicrophoneGain(float gain);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -788,4 +788,19 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
{
|
||||
setInCallTimeout(nativePtr, timeout);
|
||||
}
|
||||
|
||||
private native void setUploadBandwidth(long ptr, int bandwidth);
|
||||
public void setUploadBandwidth(int bandwidth) {
|
||||
setUploadBandwidth(nativePtr, bandwidth);
|
||||
}
|
||||
|
||||
private native void setDownloadBandwidth(long ptr, int bandwidth);
|
||||
public void setDownloadBandwidth(int bandwidth) {
|
||||
setUploadBandwidth(nativePtr, bandwidth);
|
||||
}
|
||||
|
||||
private native void setMicrophoneGain(long ptr, float gain);
|
||||
public void setMicrophoneGain(float gain) {
|
||||
setUploadBandwidth(nativePtr, gain);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue