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

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

Issue 3011623002: Add new ANA stats to GetStats() to count the number of actions taken by each controller. (Closed)
Patch Set: Moved ANAStats to audio_encoder.h 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_proxy.h ('k') | no next file » | 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 return stats; 137 return stats;
138 } 138 }
139 139
140 AudioDecodingCallStats ChannelProxy::GetDecodingCallStatistics() const { 140 AudioDecodingCallStats ChannelProxy::GetDecodingCallStatistics() const {
141 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 141 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
142 AudioDecodingCallStats stats; 142 AudioDecodingCallStats stats;
143 channel()->GetDecodingCallStatistics(&stats); 143 channel()->GetDecodingCallStatistics(&stats);
144 return stats; 144 return stats;
145 } 145 }
146 146
147 ANAStats ChannelProxy::GetANAStatistics() const {
the sun 2017/09/08 10:43:16 RTC_DCHECK(worker_thread_checker_.CalledOnValidThr
ivoc 2017/09/08 11:25:50 Done.
148 return channel()->GetANAStatistics();
149 }
150
147 int ChannelProxy::GetSpeechOutputLevel() const { 151 int ChannelProxy::GetSpeechOutputLevel() const {
148 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 152 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
149 return channel()->GetSpeechOutputLevel(); 153 return channel()->GetSpeechOutputLevel();
150 } 154 }
151 155
152 int ChannelProxy::GetSpeechOutputLevelFullRange() const { 156 int ChannelProxy::GetSpeechOutputLevelFullRange() const {
153 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 157 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
154 return channel()->GetSpeechOutputLevelFullRange(); 158 return channel()->GetSpeechOutputLevelFullRange();
155 } 159 }
156 160
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 return channel()->GetSources(); 343 return channel()->GetSources();
340 } 344 }
341 345
342 Channel* ChannelProxy::channel() const { 346 Channel* ChannelProxy::channel() const {
343 RTC_DCHECK(channel_owner_.channel()); 347 RTC_DCHECK(channel_owner_.channel());
344 return channel_owner_.channel(); 348 return channel_owner_.channel();
345 } 349 }
346 350
347 } // namespace voe 351 } // namespace voe
348 } // namespace webrtc 352 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/voice_engine/channel_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698