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

Side by Side Diff: webrtc/audio/audio_send_stream.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/api/statstypes.cc ('k') | webrtc/audio/audio_send_stream_unittest.cc » ('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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 stats.echo_return_loss_enhancement = 326 stats.echo_return_loss_enhancement =
327 audio_processing_stats.echo_return_loss_enhancement.instant(); 327 audio_processing_stats.echo_return_loss_enhancement.instant();
328 stats.residual_echo_likelihood = 328 stats.residual_echo_likelihood =
329 audio_processing_stats.residual_echo_likelihood; 329 audio_processing_stats.residual_echo_likelihood;
330 stats.residual_echo_likelihood_recent_max = 330 stats.residual_echo_likelihood_recent_max =
331 audio_processing_stats.residual_echo_likelihood_recent_max; 331 audio_processing_stats.residual_echo_likelihood_recent_max;
332 332
333 internal::AudioState* audio_state = 333 internal::AudioState* audio_state =
334 static_cast<internal::AudioState*>(audio_state_.get()); 334 static_cast<internal::AudioState*>(audio_state_.get());
335 stats.typing_noise_detected = audio_state->typing_noise_detected(); 335 stats.typing_noise_detected = audio_state->typing_noise_detected();
336 stats.ana_statistics = channel_proxy_->GetANAStatistics();
336 337
337 return stats; 338 return stats;
338 } 339 }
339 340
340 void AudioSendStream::SignalNetworkState(NetworkState state) { 341 void AudioSendStream::SignalNetworkState(NetworkState state) {
341 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 342 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
342 } 343 }
343 344
344 bool AudioSendStream::DeliverRtcp(const uint8_t* packet, size_t length) { 345 bool AudioSendStream::DeliverRtcp(const uint8_t* packet, size_t length) {
345 // TODO(solenberg): Tests call this function on a network thread, libjingle 346 // TODO(solenberg): Tests call this function on a network thread, libjingle
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 if (rtp_rtcp_module_->RegisterSendPayload(codec) != 0) { 650 if (rtp_rtcp_module_->RegisterSendPayload(codec) != 0) {
650 LOG(LS_ERROR) << "RegisterCngPayloadType() failed to register CN to " 651 LOG(LS_ERROR) << "RegisterCngPayloadType() failed to register CN to "
651 "RTP/RTCP module"; 652 "RTP/RTCP module";
652 } 653 }
653 } 654 }
654 } 655 }
655 656
656 657
657 } // namespace internal 658 } // namespace internal
658 } // namespace webrtc 659 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/statstypes.cc ('k') | webrtc/audio/audio_send_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698