mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
add linphone_core_is_mic_muted method
This commit is contained in:
parent
831f428005
commit
869a6a85ab
4 changed files with 22 additions and 1 deletions
|
|
@ -2780,6 +2780,15 @@ void linphone_core_mute_mic(LinphoneCore *lc, bool_t val){
|
|||
}
|
||||
}
|
||||
|
||||
bool_t linphone_core_is_mic_muted(LinphoneCore *lc) {
|
||||
float gain=1.0;
|
||||
if (lc->audiostream && lc->audiostream->volsend){
|
||||
ms_filter_call_method(lc->audiostream->volsend,MS_VOLUME_GET_GAIN,&gain);
|
||||
}else ms_warning("Could not get gain: gain control wasn't activated. ");
|
||||
|
||||
return gain==0;
|
||||
}
|
||||
|
||||
void linphone_core_enable_agc(LinphoneCore *lc, bool_t val){
|
||||
lc->sound_conf.agc=val;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -667,6 +667,12 @@ void linphone_core_enable_agc(LinphoneCore *lc, bool_t val);
|
|||
bool_t linphone_core_agc_enabled(const LinphoneCore *lc);
|
||||
|
||||
void linphone_core_mute_mic(LinphoneCore *lc, bool_t muted);
|
||||
/**
|
||||
* return mic state.
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
**/
|
||||
bool_t linphone_core_is_mic_muted(LinphoneCore *lc);
|
||||
|
||||
void linphone_core_set_presence_info(LinphoneCore *lc,int minutes_away,const char *contact,LinphoneOnlineStatus os);
|
||||
|
||||
|
|
|
|||
|
|
@ -329,6 +329,12 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_clearCallLogs(JNIEnv* e
|
|||
,jlong lc) {
|
||||
linphone_core_clear_call_logs((LinphoneCore*)lc);
|
||||
}
|
||||
extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_isMicMuted( JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong lc) {
|
||||
return linphone_core_is_mic_muted((LinphoneCore*)lc);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//ProxyConfig
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 6d48f5ac0b1e1df8f455c7b26824dae631663cc8
|
||||
Subproject commit af7bfe348919a44cec3f10cc3a3b5ade3483784f
|
||||
Loading…
Add table
Reference in a new issue