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

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: Initial version 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
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 2875 matching lines...) Expand 10 before | Expand all | Expand 10 after
2886 } 2886 }
2887 2887
2888 int Channel::GetNetworkStatistics(NetworkStatistics& stats) { 2888 int Channel::GetNetworkStatistics(NetworkStatistics& stats) {
2889 return audio_coding_->GetNetworkStatistics(&stats); 2889 return audio_coding_->GetNetworkStatistics(&stats);
2890 } 2890 }
2891 2891
2892 void Channel::GetDecodingCallStatistics(AudioDecodingCallStats* stats) const { 2892 void Channel::GetDecodingCallStatistics(AudioDecodingCallStats* stats) const {
2893 audio_coding_->GetDecodingCallStatistics(stats); 2893 audio_coding_->GetDecodingCallStatistics(stats);
2894 } 2894 }
2895 2895
2896 AudioEncoder::AudioEncoderStats Channel::GetAudioEncoderStatistics() const {
2897 return audio_coding_->GetAudioEncoderStatistics();
2898 }
2899
2896 uint32_t Channel::GetDelayEstimate() const { 2900 uint32_t Channel::GetDelayEstimate() const {
2897 rtc::CritScope lock(&video_sync_lock_); 2901 rtc::CritScope lock(&video_sync_lock_);
2898 return audio_coding_->FilteredCurrentDelayMs() + playout_delay_ms_; 2902 return audio_coding_->FilteredCurrentDelayMs() + playout_delay_ms_;
2899 } 2903 }
2900 2904
2901 int Channel::SetMinimumPlayoutDelay(int delayMs) { 2905 int Channel::SetMinimumPlayoutDelay(int delayMs) {
2902 WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId, _channelId), 2906 WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId, _channelId),
2903 "Channel::SetMinimumPlayoutDelay()"); 2907 "Channel::SetMinimumPlayoutDelay()");
2904 if ((delayMs < kVoiceEngineMinMinPlayoutDelayMs) || 2908 if ((delayMs < kVoiceEngineMinMinPlayoutDelayMs) ||
2905 (delayMs > kVoiceEngineMaxMinPlayoutDelayMs)) { 2909 (delayMs > kVoiceEngineMaxMinPlayoutDelayMs)) {
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
3165 int64_t min_rtt = 0; 3169 int64_t min_rtt = 0;
3166 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != 3170 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) !=
3167 0) { 3171 0) {
3168 return 0; 3172 return 0;
3169 } 3173 }
3170 return rtt; 3174 return rtt;
3171 } 3175 }
3172 3176
3173 } // namespace voe 3177 } // namespace voe
3174 } // namespace webrtc 3178 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698