| 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 2242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2253 sinfo.total_input_duration = stats.total_input_duration; | 2253 sinfo.total_input_duration = stats.total_input_duration; |
| 2254 sinfo.aec_quality_min = stats.aec_quality_min; | 2254 sinfo.aec_quality_min = stats.aec_quality_min; |
| 2255 sinfo.echo_delay_median_ms = stats.echo_delay_median_ms; | 2255 sinfo.echo_delay_median_ms = stats.echo_delay_median_ms; |
| 2256 sinfo.echo_delay_std_ms = stats.echo_delay_std_ms; | 2256 sinfo.echo_delay_std_ms = stats.echo_delay_std_ms; |
| 2257 sinfo.echo_return_loss = stats.echo_return_loss; | 2257 sinfo.echo_return_loss = stats.echo_return_loss; |
| 2258 sinfo.echo_return_loss_enhancement = stats.echo_return_loss_enhancement; | 2258 sinfo.echo_return_loss_enhancement = stats.echo_return_loss_enhancement; |
| 2259 sinfo.residual_echo_likelihood = stats.residual_echo_likelihood; | 2259 sinfo.residual_echo_likelihood = stats.residual_echo_likelihood; |
| 2260 sinfo.residual_echo_likelihood_recent_max = | 2260 sinfo.residual_echo_likelihood_recent_max = |
| 2261 stats.residual_echo_likelihood_recent_max; | 2261 stats.residual_echo_likelihood_recent_max; |
| 2262 sinfo.typing_noise_detected = (send_ ? stats.typing_noise_detected : false); | 2262 sinfo.typing_noise_detected = (send_ ? stats.typing_noise_detected : false); |
| 2263 sinfo.ana_statistics = stats.ana_statistics; |
| 2263 info->senders.push_back(sinfo); | 2264 info->senders.push_back(sinfo); |
| 2264 } | 2265 } |
| 2265 | 2266 |
| 2266 // Get SSRC and stats for each receiver. | 2267 // Get SSRC and stats for each receiver. |
| 2267 RTC_DCHECK_EQ(info->receivers.size(), 0U); | 2268 RTC_DCHECK_EQ(info->receivers.size(), 0U); |
| 2268 for (const auto& stream : recv_streams_) { | 2269 for (const auto& stream : recv_streams_) { |
| 2269 webrtc::AudioReceiveStream::Stats stats = stream.second->GetStats(); | 2270 webrtc::AudioReceiveStream::Stats stats = stream.second->GetStats(); |
| 2270 VoiceReceiverInfo rinfo; | 2271 VoiceReceiverInfo rinfo; |
| 2271 rinfo.add_ssrc(stats.remote_ssrc); | 2272 rinfo.add_ssrc(stats.remote_ssrc); |
| 2272 rinfo.bytes_rcvd = stats.bytes_rcvd; | 2273 rinfo.bytes_rcvd = stats.bytes_rcvd; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2376 ssrc); | 2377 ssrc); |
| 2377 if (it != unsignaled_recv_ssrcs_.end()) { | 2378 if (it != unsignaled_recv_ssrcs_.end()) { |
| 2378 unsignaled_recv_ssrcs_.erase(it); | 2379 unsignaled_recv_ssrcs_.erase(it); |
| 2379 return true; | 2380 return true; |
| 2380 } | 2381 } |
| 2381 return false; | 2382 return false; |
| 2382 } | 2383 } |
| 2383 } // namespace cricket | 2384 } // namespace cricket |
| 2384 | 2385 |
| 2385 #endif // HAVE_WEBRTC_VOICE | 2386 #endif // HAVE_WEBRTC_VOICE |
| OLD | NEW |