mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 20:18:09 +00:00
add support for mute/speaker
This commit is contained in:
parent
b167fe09a9
commit
5136048097
2 changed files with 20 additions and 1 deletions
|
|
@ -136,5 +136,15 @@ public interface LinphoneCore {
|
|||
* destroy linphone core and free all underlying resources
|
||||
*/
|
||||
public void destroy();
|
||||
/**
|
||||
* Allow to control play level before entering sound card:
|
||||
* @param level in db
|
||||
*/
|
||||
public void setSoftPlayLevel(float gain);
|
||||
/**
|
||||
* get play level before entering sound card:
|
||||
* @return level in db
|
||||
*/
|
||||
public float getSoftPlayLevel();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,9 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
private native long getCallLog(long nativePtr,int position);
|
||||
private native int getNumberOfCallLogs(long nativePtr);
|
||||
private native void delete(long nativePtr);
|
||||
private native void setNetworkStateReachable(long nativePtr,boolean isReachable);
|
||||
private native void setNetworkStateReachable(long nativePtr,boolean isReachable);
|
||||
private native void setSoftPlayLevel(long nativeptr, float gain);
|
||||
private native float getSoftPlayLevel(long nativeptr);
|
||||
|
||||
|
||||
LinphoneCoreImpl(LinphoneCoreListener listener, File userConfig,File factoryConfig,Object userdata) throws IOException {
|
||||
|
|
@ -159,4 +161,11 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
public void setNetworkStateReachable(boolean isReachable) {
|
||||
setNetworkStateReachable(nativePtr,isReachable);
|
||||
}
|
||||
public void setSoftPlayLevel(float gain) {
|
||||
setSoftPlayLevel(nativePtr,gain);
|
||||
|
||||
}
|
||||
public float getSoftPlayLevel() {
|
||||
return getSoftPlayLevel(nativePtr);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue