| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 2838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2849 } | 2849 } |
| 2850 | 2850 |
| 2851 int Channel::GetNetworkStatistics(NetworkStatistics& stats) { | 2851 int Channel::GetNetworkStatistics(NetworkStatistics& stats) { |
| 2852 return audio_coding_->GetNetworkStatistics(&stats); | 2852 return audio_coding_->GetNetworkStatistics(&stats); |
| 2853 } | 2853 } |
| 2854 | 2854 |
| 2855 void Channel::GetDecodingCallStatistics(AudioDecodingCallStats* stats) const { | 2855 void Channel::GetDecodingCallStatistics(AudioDecodingCallStats* stats) const { |
| 2856 audio_coding_->GetDecodingCallStatistics(stats); | 2856 audio_coding_->GetDecodingCallStatistics(stats); |
| 2857 } | 2857 } |
| 2858 | 2858 |
| 2859 ANAStats Channel::GetANAStatistics() const { |
| 2860 return audio_coding_->GetANAStats(); |
| 2861 } |
| 2862 |
| 2859 uint32_t Channel::GetDelayEstimate() const { | 2863 uint32_t Channel::GetDelayEstimate() const { |
| 2860 rtc::CritScope lock(&video_sync_lock_); | 2864 rtc::CritScope lock(&video_sync_lock_); |
| 2861 return audio_coding_->FilteredCurrentDelayMs() + playout_delay_ms_; | 2865 return audio_coding_->FilteredCurrentDelayMs() + playout_delay_ms_; |
| 2862 } | 2866 } |
| 2863 | 2867 |
| 2864 int Channel::SetMinimumPlayoutDelay(int delayMs) { | 2868 int Channel::SetMinimumPlayoutDelay(int delayMs) { |
| 2865 WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId, _channelId), | 2869 WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId, _channelId), |
| 2866 "Channel::SetMinimumPlayoutDelay()"); | 2870 "Channel::SetMinimumPlayoutDelay()"); |
| 2867 if ((delayMs < kVoiceEngineMinMinPlayoutDelayMs) || | 2871 if ((delayMs < kVoiceEngineMinMinPlayoutDelayMs) || |
| 2868 (delayMs > kVoiceEngineMaxMinPlayoutDelayMs)) { | 2872 (delayMs > kVoiceEngineMaxMinPlayoutDelayMs)) { |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3128 int64_t min_rtt = 0; | 3132 int64_t min_rtt = 0; |
| 3129 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != | 3133 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != |
| 3130 0) { | 3134 0) { |
| 3131 return 0; | 3135 return 0; |
| 3132 } | 3136 } |
| 3133 return rtt; | 3137 return rtt; |
| 3134 } | 3138 } |
| 3135 | 3139 |
| 3136 } // namespace voe | 3140 } // namespace voe |
| 3137 } // namespace webrtc | 3141 } // namespace webrtc |
| OLD | NEW |