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.h" | 5 #include "content/renderer/media/media_stream_audio_processor.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram_macros.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
19 #include "content/renderer/media/media_stream_audio_processor_options.h" | 19 #include "content/renderer/media/media_stream_audio_processor_options.h" |
20 #include "content/renderer/media/webrtc_audio_device_impl.h" | 20 #include "content/renderer/media/webrtc_audio_device_impl.h" |
21 #include "media/base/audio_converter.h" | 21 #include "media/base/audio_converter.h" |
22 #include "media/base/audio_fifo.h" | 22 #include "media/base/audio_fifo.h" |
23 #include "media/base/audio_parameters.h" | 23 #include "media/base/audio_parameters.h" |
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 0 : agc->stream_analog_level(); | 817 0 : agc->stream_analog_level(); |
818 } | 818 } |
819 | 819 |
820 void MediaStreamAudioProcessor::UpdateAecStats() { | 820 void MediaStreamAudioProcessor::UpdateAecStats() { |
821 DCHECK(main_thread_checker_.CalledOnValidThread()); | 821 DCHECK(main_thread_checker_.CalledOnValidThread()); |
822 if (echo_information_) | 822 if (echo_information_) |
823 echo_information_->UpdateAecStats(audio_processing_->echo_cancellation()); | 823 echo_information_->UpdateAecStats(audio_processing_->echo_cancellation()); |
824 } | 824 } |
825 | 825 |
826 } // namespace content | 826 } // namespace content |
OLD | NEW |