From cb9232b3ab413fae7bcc2b94abd70f18ca02b263 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期二, 03 十二月 2024 11:20:32 +0800 Subject: [PATCH] 增加铃声;增加TCP/UDP连接选择 --- Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/mediastreamer2.framework/Headers/msticker.h | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/mediastreamer2.framework/Headers/msticker.h b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/mediastreamer2.framework/Headers/msticker.h index 0485987..f13be0f 100755 --- a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/mediastreamer2.framework/Headers/msticker.h +++ b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/mediastreamer2.framework/Headers/msticker.h @@ -114,8 +114,10 @@ { uint64_t offset; /**<the default offset of ticker*/ double av_skew; /**< mean skew */ - unsigned int external_time_count; /**< number of times ms_ticker_synchronizer_set_external_time() is called */ + uint64_t origin_nsamples; /**< Sample count when ms_ticker_synchronizer_update() is called for the first time */ uint64_t current_nsamples; /**< The last number of samples read notified with ms_ticker_synchronizer_update*/ + uint64_t last_log_time; /**< The last time the skew log was issued*/ + unsigned int sample_rate; }; /** @@ -290,6 +292,14 @@ MS2_PUBLIC uint64_t ms_ticker_synchronizer_get_corrected_time(MSTickerSynchronizer* ts); /** + * Ask the ticker synchronizer to resynchronize. Use this when you are aware of an overrun/underrun and you think that the + * next update will report an errouneous sample count. + * @param ts A #MSTickerSynchronizer object. + * @return A corrected current time. + */ +MS2_PUBLIC void ms_ticker_synchronizer_resync(MSTickerSynchronizer* ts); + +/** * Destroy a ticker synchronizer. * @param ts A #MSTickerSynchronizer object. */ -- Gitblit v1.8.0