deprecate LinphoneCore.adjustSoftareVolume(), because it does the same as setPlaybackGain()o
This commit is contained in:
parent
7c91c37646
commit
1b22c59a66
3 changed files with 3 additions and 4 deletions
|
@ -1201,7 +1201,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
||||||
if (nextVolume > maxVolume) nextVolume = maxVolume;
|
if (nextVolume > maxVolume) nextVolume = maxVolume;
|
||||||
if (nextVolume < 0) nextVolume = 0;
|
if (nextVolume < 0) nextVolume = 0;
|
||||||
|
|
||||||
mLc.adjustSoftwareVolume((nextVolume - maxVolume)* dbStep);
|
mLc.setPlaybackGain((nextVolume - maxVolume)* dbStep);
|
||||||
} else
|
} else
|
||||||
// starting from ICS, volume must be adjusted by the application, at least for STREAM_VOICE_CALL volume stream
|
// starting from ICS, volume must be adjusted by the application, at least for STREAM_VOICE_CALL volume stream
|
||||||
mAudioManager.adjustStreamVolume(LINPHONE_VOLUME_STREAM, i<0?AudioManager.ADJUST_LOWER:AudioManager.ADJUST_RAISE, 0);
|
mAudioManager.adjustStreamVolume(LINPHONE_VOLUME_STREAM, i<0?AudioManager.ADJUST_LOWER:AudioManager.ADJUST_RAISE, 0);
|
||||||
|
|
|
@ -93,7 +93,6 @@ class LinphoneCoreImpl implements LinphoneCore {
|
||||||
private native int getSignalingTransportPort(long nativePtr, int code);
|
private native int getSignalingTransportPort(long nativePtr, int code);
|
||||||
private native void setSignalingTransportPorts(long nativePtr, int udp, int tcp, int tls);
|
private native void setSignalingTransportPorts(long nativePtr, int udp, int tcp, int tls);
|
||||||
private native void enableIpv6(long nativePtr,boolean enable);
|
private native void enableIpv6(long nativePtr,boolean enable);
|
||||||
private native void adjustSoftwareVolume(long nativePtr,int db);
|
|
||||||
private native int pauseCall(long nativePtr, long callPtr);
|
private native int pauseCall(long nativePtr, long callPtr);
|
||||||
private native int pauseAllCalls(long nativePtr);
|
private native int pauseAllCalls(long nativePtr);
|
||||||
private native int resumeCall(long nativePtr, long callPtr);
|
private native int resumeCall(long nativePtr, long callPtr);
|
||||||
|
@ -474,7 +473,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
||||||
enableIpv6(nativePtr,enable);
|
enableIpv6(nativePtr,enable);
|
||||||
}
|
}
|
||||||
public synchronized void adjustSoftwareVolume(int i) {
|
public synchronized void adjustSoftwareVolume(int i) {
|
||||||
adjustSoftwareVolume(nativePtr, i);
|
//deprecated, does the same as setPlaybackGain().
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized boolean pauseCall(LinphoneCall call) {
|
public synchronized boolean pauseCall(LinphoneCall call) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit da4114607f0d080efb9bcee2fa0dbcc94a2f0d17
|
Subproject commit c2e7592a2a349104ed2aa4121e1e4d44633a0908
|
Loading…
Reference in a new issue