From 6a99d9bf65aa5878cb409945ed2bdbdcb916d047 Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期五, 02 九月 2022 14:56:40 +0800 Subject: [PATCH] 更新linphone sdk --- HDLLinPhoneSDK(OC)/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/linphone.framework/Headers/core_utils.h | 76 ++++++++++++++++++++++++++++++------- 1 files changed, 61 insertions(+), 15 deletions(-) diff --git "a/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/linphone.framework/Headers/core_utils.h" "b/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/linphone.framework/Headers/core_utils.h" old mode 100644 new mode 100755 index f86d07e..27608ec --- "a/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/linphone.framework/Headers/core_utils.h" +++ "b/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/linphone.framework/Headers/core_utils.h" @@ -59,7 +59,7 @@ /** * @brief Starts an echo calibration of the sound devices, in order to find adequate settings for the echo canceler automatically. - * @deprecated Use #linphone_core_start_echo_canceller_calibration() instead. To set the callbacks create or get an already instantiated + * @deprecated 16/10/2017 Use #linphone_core_start_echo_canceller_calibration() instead. To set the callbacks create or get an already instantiated * #LinphoneCoreCbs and call #linphone_core_cbs_set_ec_calibration_result(), #linphone_core_cbs_set_ec_calibration_audio_init() and * #linphone_core_cbs_set_ec_callibration_audio_uninit(). Deprecated since 2017-10-16. * @ingroup misc @@ -70,58 +70,104 @@ /** * @brief Starts an echo calibration of the sound devices, in order to find adequate settings for the echo canceler automatically. - * @param[in] lc #LinphoneCore object. + * @param core #LinphoneCore object. @notnil * @return #LinphoneStatus whether calibration has started or not. * @ingroup misc **/ -LINPHONE_PUBLIC LinphoneStatus linphone_core_start_echo_canceller_calibration(LinphoneCore *lc); +LINPHONE_PUBLIC LinphoneStatus linphone_core_start_echo_canceller_calibration(LinphoneCore *core); /** * Start the simulation of call to test the latency with an external device - * @param lc The core. + * @param core The #LinphoneCore object. @notnil * @param rate Sound sample rate. + * @return -1 in case of failure, 1 otherwise. * @ingroup misc **/ -LINPHONE_PUBLIC LinphoneStatus linphone_core_start_echo_tester(LinphoneCore *lc, unsigned int rate); +LINPHONE_PUBLIC LinphoneStatus linphone_core_start_echo_tester(LinphoneCore *core, unsigned int rate); /** * Stop the simulation of call + * @param core The #LinphoneCore object. @notnil * @ingroup misc **/ -LINPHONE_PUBLIC LinphoneStatus linphone_core_stop_echo_tester(LinphoneCore *lc); +LINPHONE_PUBLIC LinphoneStatus linphone_core_stop_echo_tester(LinphoneCore *core); /** * Check whether the device is flagged has crappy opengl - * @returns TRUE if crappy opengl flag is set, FALSE otherwise + * @param core The #LinphoneCore object. @notnil + * @return TRUE if crappy opengl flag is set, FALSE otherwise * @ingroup misc **/ -LINPHONE_PUBLIC bool_t linphone_core_has_crappy_opengl(LinphoneCore *lc); +LINPHONE_PUBLIC bool_t linphone_core_has_crappy_opengl(LinphoneCore *core); /** * Check whether the device has a hardware echo canceller - * @returns TRUE if it does, FALSE otherwise + * @param core The #LinphoneCore object. @notnil + * @return TRUE if it does, FALSE otherwise * @ingroup misc **/ -LINPHONE_PUBLIC bool_t linphone_core_has_builtin_echo_canceller(LinphoneCore *lc); +LINPHONE_PUBLIC bool_t linphone_core_has_builtin_echo_canceller(LinphoneCore *core); /** * Check whether the device is echo canceller calibration is required - * @returns TRUE if it is required, FALSE otherwise + * @param core The #LinphoneCore object. @notnil + * @return TRUE if it is required, FALSE otherwise * @ingroup misc **/ -LINPHONE_PUBLIC bool_t linphone_core_is_echo_canceller_calibration_required(LinphoneCore *lc); +LINPHONE_PUBLIC bool_t linphone_core_is_echo_canceller_calibration_required(LinphoneCore *core); /** * @ingroup IOS - * Special function to warm up dtmf feeback stream. #linphone_core_stop_dtmf_stream must() be called before entering FG mode + * @param core The #LinphoneCore object. @notnil + * Special function to warm up dtmf feeback stream. #linphone_core_stop_dtmf_stream() must be called before entering FG mode */ -LINPHONE_PUBLIC void linphone_core_start_dtmf_stream(LinphoneCore* lc); +LINPHONE_PUBLIC void linphone_core_start_dtmf_stream(LinphoneCore* core); + /** * @ingroup IOS + * @param core The #LinphoneCore object. @notnil * Special function to stop dtmf feed back function. Must be called before entering BG mode */ -LINPHONE_PUBLIC void linphone_core_stop_dtmf_stream(LinphoneCore* lc); +LINPHONE_PUBLIC void linphone_core_stop_dtmf_stream(LinphoneCore* core); +/** + * Special function to indicate if the audio session is activated. Must be called when ProviderDelegate of the callkit notifies that the audio session is activated or deactivated. + * @param core The #LinphoneCore object. @notnil + * @param activated TRUE to activate the audio session, FALSE to disable it. + * @ingroup IOS + */ +LINPHONE_PUBLIC void linphone_core_activate_audio_session(LinphoneCore* core, bool_t actived); + +/** + * Special function to configure audio session with default settings. Must be called in ProviderDelegate's callbacks when answer an incoming call and start an outgoing call. + * @param core The #LinphoneCore object. @notnil + * @ingroup IOS + */ +LINPHONE_PUBLIC void linphone_core_configure_audio_session(LinphoneCore* core); + +/** + * Special function to enable the callkit. + * @param core The #LinphoneCore object. @notnil + * @param enabled TRUE to enable callkit, FALSE to disable it. + * @ingroup IOS + */ +LINPHONE_PUBLIC void linphone_core_enable_callkit (LinphoneCore* core, bool_t enabled); + +/** + * Special function to indicate if the audio route is changed. Must be called in the callback of AVAudioSessionRouteChangeNotification. + * @param core The #LinphoneCore object. @notnil + * @ingroup IOS + * @deprecated 07/01/2020 now handled in the linphone SDK directly +*/ +LINPHONE_DEPRECATED LINPHONE_PUBLIC void linphone_core_audio_route_changed (LinphoneCore *core); + +/** + * Special function to check if the callkit is enabled, False by default. + * @param core The #LinphoneCore object. @notnil + * @return TRUE if callkit is enabled, FALSE otherwise. + * @ingroup IOS +*/ +LINPHONE_PUBLIC bool_t linphone_core_callkit_enabled (const LinphoneCore *core); typedef bool_t (*LinphoneCoreIterateHook)(void *data); -- Gitblit v1.8.0