| 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 "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "base/path_service.h" | |
| 13 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 15 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 16 #include "content/common/media/media_stream_options.h" | 15 #include "content/common/media/media_stream_options.h" |
| 17 #include "content/renderer/media/media_stream_constraints_util.h" | 16 #include "content/renderer/media/media_stream_constraints_util.h" |
| 18 #include "content/renderer/media/media_stream_source.h" | 17 #include "content/renderer/media/media_stream_source.h" |
| 19 #include "content/renderer/media/rtc_media_constraints.h" | 18 #include "content/renderer/media/rtc_media_constraints.h" |
| 20 #include "media/audio/audio_parameters.h" | 19 #include "media/audio/audio_parameters.h" |
| 21 #include "third_party/webrtc/modules/audio_processing/include/audio_processing.h
" | 20 #include "third_party/webrtc/modules/audio_processing/include/audio_processing.h
" |
| 22 #include "third_party/webrtc/modules/audio_processing/typing_detection.h" | 21 #include "third_party/webrtc/modules/audio_processing/typing_detection.h" |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 } | 381 } |
| 383 | 382 |
| 384 int median = 0, std = 0; | 383 int median = 0, std = 0; |
| 385 if (!audio_processing->echo_cancellation()->GetDelayMetrics(&median, &std)) { | 384 if (!audio_processing->echo_cancellation()->GetDelayMetrics(&median, &std)) { |
| 386 stats->echo_delay_median_ms = median; | 385 stats->echo_delay_median_ms = median; |
| 387 stats->echo_delay_std_ms = std; | 386 stats->echo_delay_std_ms = std; |
| 388 } | 387 } |
| 389 } | 388 } |
| 390 | 389 |
| 391 } // namespace content | 390 } // namespace content |
| OLD | NEW |