dnl Process this file with autoconf to produce a configure script.
-AC_INIT([linphone],[3.4.2],[linphone-developers@nongnu.org])
+AC_INIT([linphone],[3.4.3],[linphone-developers@nongnu.org])
AC_CANONICAL_SYSTEM
AC_CONFIG_SRCDIR([coreapi/linphonecore.c])
}
}
+/**
+ * Returns the measured sound volume played locally (received from remote)
+ * It is expressed in dbm0.
+**/
+float linphone_call_get_play_volume(LinphoneCall *call){
+ AudioStream *st=call->audiostream;
+ if (st && st->volsend){
+ float vol=0;
+ ms_filter_call_method(st->volsend,MS_VOLUME_GET,&vol);
+ return vol;
+
+ }
+ return LINPHONE_VOLUME_DB_LOWEST;
+}
+
+/**
+ * Returns the measured sound volume recorded locally (sent to remote)
+ * It is expressed in dbm0.
+**/
+float linphone_call_get_record_volume(LinphoneCall *call){
+ AudioStream *st=call->audiostream;
+ if (st && st->volrecv){
+ float vol=0;
+ ms_filter_call_method(st->volrecv,MS_VOLUME_GET,&vol);
+ return vol;
+
+ }
+ return LINPHONE_VOLUME_DB_LOWEST;
+}
+
int linphone_call_take_video_snapshot(LinphoneCall *call, const char *file);
LinphoneReason linphone_call_get_reason(const LinphoneCall *call);
const char *linphone_call_get_remote_user_agent(LinphoneCall *call);
+float linphone_call_get_play_volume(LinphoneCall *call);
+float linphone_call_get_record_volume(LinphoneCall *call);
void *linphone_call_get_user_pointer(LinphoneCall *call);
void linphone_call_set_user_pointer(LinphoneCall *call, void *user_pointer);
/**
* @ingroup media_parameters
**/
bool_t linphone_call_echo_limiter_enabled(const LinphoneCall *call);
+
+/*keep this in sync with mediastreamer2/msvolume.h*/
+#define LINPHONE_VOLUME_DB_LOWEST (-120) /**< Lowest measured that can be returned.*/
+
/**
* @addtogroup proxies
* @{
-Subproject commit d81b5016b2badea5a3c8b335a0cb9ea000e69711
+Subproject commit 63788c7a33857e6994da7138d40efa6fff6f6c92