OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/media/media_stream_audio_processor_options.h" | 5 #include "content/renderer/media/media_stream_audio_processor_options.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 auto apm_stats = audio_processing->GetStatistics(); | 460 auto apm_stats = audio_processing->GetStatistics(); |
461 stats->echo_return_loss = apm_stats.echo_return_loss.instant(); | 461 stats->echo_return_loss = apm_stats.echo_return_loss.instant(); |
462 stats->echo_return_loss_enhancement = | 462 stats->echo_return_loss_enhancement = |
463 apm_stats.echo_return_loss_enhancement.instant(); | 463 apm_stats.echo_return_loss_enhancement.instant(); |
464 stats->aec_divergent_filter_fraction = apm_stats.divergent_filter_fraction; | 464 stats->aec_divergent_filter_fraction = apm_stats.divergent_filter_fraction; |
465 | 465 |
466 stats->echo_delay_median_ms = apm_stats.delay_median; | 466 stats->echo_delay_median_ms = apm_stats.delay_median; |
467 stats->echo_delay_std_ms = apm_stats.delay_standard_deviation; | 467 stats->echo_delay_std_ms = apm_stats.delay_standard_deviation; |
468 | 468 |
469 stats->residual_echo_likelihood = apm_stats.residual_echo_likelihood; | 469 stats->residual_echo_likelihood = apm_stats.residual_echo_likelihood; |
| 470 stats->residual_echo_likelihood_recent_max = |
| 471 apm_stats.residual_echo_likelihood_recent_max; |
470 } | 472 } |
471 | 473 |
472 std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints( | 474 std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints( |
473 const MediaAudioConstraints& audio_constraints, | 475 const MediaAudioConstraints& audio_constraints, |
474 const MediaStreamDevice::AudioDeviceParameters& input_params) { | 476 const MediaStreamDevice::AudioDeviceParameters& input_params) { |
475 const std::string constraints_geometry = | 477 const std::string constraints_geometry = |
476 audio_constraints.GetGoogArrayGeometry(); | 478 audio_constraints.GetGoogArrayGeometry(); |
477 | 479 |
478 // Give preference to the audio constraint over the device-supplied mic | 480 // Give preference to the audio constraint over the device-supplied mic |
479 // positions. This is mainly for testing purposes. | 481 // positions. This is mainly for testing purposes. |
480 return WebrtcPointsFromMediaPoints( | 482 return WebrtcPointsFromMediaPoints( |
481 constraints_geometry.empty() | 483 constraints_geometry.empty() |
482 ? input_params.mic_positions | 484 ? input_params.mic_positions |
483 : media::ParsePointsFromString(constraints_geometry)); | 485 : media::ParsePointsFromString(constraints_geometry)); |
484 } | 486 } |
485 | 487 |
486 } // namespace content | 488 } // namespace content |
OLD | NEW |