Replacing deprecated mute function.

This commit is contained in:
Sandrine Avakian 2016-03-14 17:09:16 +01:00
parent 9a94342d83
commit 5f1ab1680a
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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"