forked from mirrors/linphone-iphone
Replacing deprecated mute function.
This commit is contained in:
parent
9a94342d83
commit
5f1ab1680a
2 changed files with 3 additions and 3 deletions
|
|
@ -1749,7 +1749,7 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_muteMic( JNIEnv* env
|
|||
,jobject thiz
|
||||
,jlong lc
|
||||
,jboolean isMuted) {
|
||||
linphone_core_mute_mic((LinphoneCore*)lc,isMuted);
|
||||
linphone_core_enable_mic((LinphoneCore*)lc,isMuted);
|
||||
}
|
||||
|
||||
extern "C" jlong Java_org_linphone_core_LinphoneCoreImpl_interpretUrl( JNIEnv* env
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ void CallMute::exec(Daemon* app, const char* args)
|
|||
}
|
||||
|
||||
if (sscanf(args, "%i", &muted) == 1) {
|
||||
linphone_core_mute_mic(lc, (muted != 0));
|
||||
linphone_core_enable_mic(lc, (muted != 0));
|
||||
} else {
|
||||
linphone_core_mute_mic(lc, (muted != 0));
|
||||
linphone_core_enable_mic(lc, (muted != 0));
|
||||
}
|
||||
|
||||
app->sendResponse(Response(muted?"Microphone Muted"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue