OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 2549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2560 sinfo.codec_name = stats.codec_name; | 2560 sinfo.codec_name = stats.codec_name; |
2561 sinfo.ext_seqnum = stats.ext_seqnum; | 2561 sinfo.ext_seqnum = stats.ext_seqnum; |
2562 sinfo.jitter_ms = stats.jitter_ms; | 2562 sinfo.jitter_ms = stats.jitter_ms; |
2563 sinfo.rtt_ms = stats.rtt_ms; | 2563 sinfo.rtt_ms = stats.rtt_ms; |
2564 sinfo.audio_level = stats.audio_level; | 2564 sinfo.audio_level = stats.audio_level; |
2565 sinfo.aec_quality_min = stats.aec_quality_min; | 2565 sinfo.aec_quality_min = stats.aec_quality_min; |
2566 sinfo.echo_delay_median_ms = stats.echo_delay_median_ms; | 2566 sinfo.echo_delay_median_ms = stats.echo_delay_median_ms; |
2567 sinfo.echo_delay_std_ms = stats.echo_delay_std_ms; | 2567 sinfo.echo_delay_std_ms = stats.echo_delay_std_ms; |
2568 sinfo.echo_return_loss = stats.echo_return_loss; | 2568 sinfo.echo_return_loss = stats.echo_return_loss; |
2569 sinfo.echo_return_loss_enhancement = stats.echo_return_loss_enhancement; | 2569 sinfo.echo_return_loss_enhancement = stats.echo_return_loss_enhancement; |
| 2570 sinfo.residual_echo_likelihood = stats.residual_echo_likelihood; |
2570 sinfo.typing_noise_detected = (send_ ? stats.typing_noise_detected : false); | 2571 sinfo.typing_noise_detected = (send_ ? stats.typing_noise_detected : false); |
2571 info->senders.push_back(sinfo); | 2572 info->senders.push_back(sinfo); |
2572 } | 2573 } |
2573 | 2574 |
2574 // Get SSRC and stats for each receiver. | 2575 // Get SSRC and stats for each receiver. |
2575 RTC_DCHECK(info->receivers.size() == 0); | 2576 RTC_DCHECK(info->receivers.size() == 0); |
2576 for (const auto& stream : recv_streams_) { | 2577 for (const auto& stream : recv_streams_) { |
2577 webrtc::AudioReceiveStream::Stats stats = stream.second->GetStats(); | 2578 webrtc::AudioReceiveStream::Stats stats = stream.second->GetStats(); |
2578 VoiceReceiverInfo rinfo; | 2579 VoiceReceiverInfo rinfo; |
2579 rinfo.add_ssrc(stats.remote_ssrc); | 2580 rinfo.add_ssrc(stats.remote_ssrc); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2650 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 2651 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
2651 const auto it = send_streams_.find(ssrc); | 2652 const auto it = send_streams_.find(ssrc); |
2652 if (it != send_streams_.end()) { | 2653 if (it != send_streams_.end()) { |
2653 return it->second->channel(); | 2654 return it->second->channel(); |
2654 } | 2655 } |
2655 return -1; | 2656 return -1; |
2656 } | 2657 } |
2657 } // namespace cricket | 2658 } // namespace cricket |
2658 | 2659 |
2659 #endif // HAVE_WEBRTC_VOICE | 2660 #endif // HAVE_WEBRTC_VOICE |
OLD | NEW |