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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 break; | 272 break; |
273 } | 273 } |
274 } | 274 } |
275 } | 275 } |
276 | 276 |
277 ScopedVoEInterface<VoEBase> base(voice_engine()); | 277 ScopedVoEInterface<VoEBase> base(voice_engine()); |
278 RTC_DCHECK(base->transmit_mixer()); | 278 RTC_DCHECK(base->transmit_mixer()); |
279 stats.audio_level = base->transmit_mixer()->AudioLevelFullRange(); | 279 stats.audio_level = base->transmit_mixer()->AudioLevelFullRange(); |
280 RTC_DCHECK_LE(0, stats.audio_level); | 280 RTC_DCHECK_LE(0, stats.audio_level); |
281 | 281 |
| 282 stats.total_input_energy = base->transmit_mixer()->GetTotalInputEnergy(); |
| 283 stats.total_input_duration = base->transmit_mixer()->GetTotalInputDuration(); |
| 284 |
282 RTC_DCHECK(audio_state_->audio_processing()); | 285 RTC_DCHECK(audio_state_->audio_processing()); |
283 auto audio_processing_stats = | 286 auto audio_processing_stats = |
284 audio_state_->audio_processing()->GetStatistics(); | 287 audio_state_->audio_processing()->GetStatistics(); |
285 stats.echo_delay_median_ms = audio_processing_stats.delay_median; | 288 stats.echo_delay_median_ms = audio_processing_stats.delay_median; |
286 stats.echo_delay_std_ms = audio_processing_stats.delay_standard_deviation; | 289 stats.echo_delay_std_ms = audio_processing_stats.delay_standard_deviation; |
287 stats.echo_return_loss = audio_processing_stats.echo_return_loss.instant(); | 290 stats.echo_return_loss = audio_processing_stats.echo_return_loss.instant(); |
288 stats.echo_return_loss_enhancement = | 291 stats.echo_return_loss_enhancement = |
289 audio_processing_stats.echo_return_loss_enhancement.instant(); | 292 audio_processing_stats.echo_return_loss_enhancement.instant(); |
290 stats.residual_echo_likelihood = | 293 stats.residual_echo_likelihood = |
291 audio_processing_stats.residual_echo_likelihood; | 294 audio_processing_stats.residual_echo_likelihood; |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 if (rtp_rtcp_module_->RegisterSendPayload(codec) != 0) { | 610 if (rtp_rtcp_module_->RegisterSendPayload(codec) != 0) { |
608 LOG(LS_ERROR) << "RegisterCngPayloadType() failed to register CN to " | 611 LOG(LS_ERROR) << "RegisterCngPayloadType() failed to register CN to " |
609 "RTP/RTCP module"; | 612 "RTP/RTCP module"; |
610 } | 613 } |
611 } | 614 } |
612 } | 615 } |
613 | 616 |
614 | 617 |
615 } // namespace internal | 618 } // namespace internal |
616 } // namespace webrtc | 619 } // namespace webrtc |
OLD | NEW |