OLD | NEW |
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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 336 |
| 337 auto audio_encoder_stats = channel_proxy_->GetAudioEncoderStatistics(); |
| 338 stats.ana_bitrate_action_counter = |
| 339 audio_encoder_stats.ana_bitrate_action_counter; |
| 340 stats.ana_channel_action_counter = |
| 341 audio_encoder_stats.ana_channel_action_counter; |
| 342 stats.ana_dtx_action_counter = audio_encoder_stats.ana_dtx_action_counter; |
| 343 stats.ana_fec_action_counter = audio_encoder_stats.ana_fec_action_counter; |
| 344 stats.ana_frame_length_action_counter = |
| 345 audio_encoder_stats.ana_frame_length_action_counter; |
| 346 |
337 return stats; | 347 return stats; |
338 } | 348 } |
339 | 349 |
340 void AudioSendStream::SignalNetworkState(NetworkState state) { | 350 void AudioSendStream::SignalNetworkState(NetworkState state) { |
341 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 351 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
342 } | 352 } |
343 | 353 |
344 bool AudioSendStream::DeliverRtcp(const uint8_t* packet, size_t length) { | 354 bool AudioSendStream::DeliverRtcp(const uint8_t* packet, size_t length) { |
345 // TODO(solenberg): Tests call this function on a network thread, libjingle | 355 // TODO(solenberg): Tests call this function on a network thread, libjingle |
346 // calls on the worker thread. We should move towards always using a network | 356 // calls on the worker thread. We should move towards always using a network |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 if (rtp_rtcp_module_->RegisterSendPayload(codec) != 0) { | 659 if (rtp_rtcp_module_->RegisterSendPayload(codec) != 0) { |
650 LOG(LS_ERROR) << "RegisterCngPayloadType() failed to register CN to " | 660 LOG(LS_ERROR) << "RegisterCngPayloadType() failed to register CN to " |
651 "RTP/RTCP module"; | 661 "RTP/RTCP module"; |
652 } | 662 } |
653 } | 663 } |
654 } | 664 } |
655 | 665 |
656 | 666 |
657 } // namespace internal | 667 } // namespace internal |
658 } // namespace webrtc | 668 } // namespace webrtc |
OLD | NEW |