Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Side by Side Diff: webrtc/voice_engine/channel.cc

Issue 3011623002: Add new ANA stats to GetStats() to count the number of actions taken by each controller. (Closed)
Patch Set: Fix for failing test. Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/voice_engine/channel.h ('k') | webrtc/voice_engine/channel_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/voice_engine/channel.h ('k') | webrtc/voice_engine/channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698