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

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

Issue 2964593002: Adding stats that can be used to compute output audio levels. (Closed)
Patch Set: Add test coverage in AudioSendStreamTest. Created 3 years, 5 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') | webrtc/voice_engine/transmit_mixer.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) 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 int ChannelProxy::GetSpeechOutputLevel() const { 147 int ChannelProxy::GetSpeechOutputLevel() const {
148 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 148 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
149 return channel()->GetSpeechOutputLevel(); 149 return channel()->GetSpeechOutputLevel();
150 } 150 }
151 151
152 int ChannelProxy::GetSpeechOutputLevelFullRange() const { 152 int ChannelProxy::GetSpeechOutputLevelFullRange() const {
153 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 153 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
154 return channel()->GetSpeechOutputLevelFullRange(); 154 return channel()->GetSpeechOutputLevelFullRange();
155 } 155 }
156 156
157 double ChannelProxy::GetTotalOutputEnergy() const {
158 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
159 return channel()->GetTotalOutputEnergy();
160 }
161
162 double ChannelProxy::GetTotalOutputDuration() const {
163 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
164 return channel()->GetTotalOutputDuration();
165 }
166
157 uint32_t ChannelProxy::GetDelayEstimate() const { 167 uint32_t ChannelProxy::GetDelayEstimate() const {
158 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread() || 168 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread() ||
159 module_process_thread_checker_.CalledOnValidThread()); 169 module_process_thread_checker_.CalledOnValidThread());
160 return channel()->GetDelayEstimate(); 170 return channel()->GetDelayEstimate();
161 } 171 }
162 172
163 bool ChannelProxy::SetSendTelephoneEventPayloadType(int payload_type, 173 bool ChannelProxy::SetSendTelephoneEventPayloadType(int payload_type,
164 int payload_frequency) { 174 int payload_frequency) {
165 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 175 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
166 return channel()->SetSendTelephoneEventPayloadType(payload_type, 176 return channel()->SetSendTelephoneEventPayloadType(payload_type,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 return channel()->GetSources(); 343 return channel()->GetSources();
334 } 344 }
335 345
336 Channel* ChannelProxy::channel() const { 346 Channel* ChannelProxy::channel() const {
337 RTC_DCHECK(channel_owner_.channel()); 347 RTC_DCHECK(channel_owner_.channel());
338 return channel_owner_.channel(); 348 return channel_owner_.channel();
339 } 349 }
340 350
341 } // namespace voe 351 } // namespace voe
342 } // namespace webrtc 352 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/voice_engine/channel_proxy.h ('k') | webrtc/voice_engine/transmit_mixer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698