| 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 <algorithm> | 9 #include <algorithm> |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "base/threading/thread_task_runner_handle.h" | 22 #include "base/threading/thread_task_runner_handle.h" |
| 23 #include "base/trace_event/trace_event.h" | 23 #include "base/trace_event/trace_event.h" |
| 24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
| 25 #include "content/public/common/content_features.h" | 25 #include "content/public/common/content_features.h" |
| 26 #include "content/public/common/content_switches.h" | 26 #include "content/public/common/content_switches.h" |
| 27 #include "content/renderer/media/webrtc_audio_device_impl.h" | 27 #include "content/renderer/media/webrtc_audio_device_impl.h" |
| 28 #include "media/base/audio_converter.h" | 28 #include "media/base/audio_converter.h" |
| 29 #include "media/base/audio_fifo.h" | 29 #include "media/base/audio_fifo.h" |
| 30 #include "media/base/audio_parameters.h" | 30 #include "media/base/audio_parameters.h" |
| 31 #include "media/base/channel_layout.h" | 31 #include "media/base/channel_layout.h" |
| 32 #undef FOURCC // Leaky macro from both libyuv and webrtc |
| 32 #include "third_party/webrtc/api/mediaconstraintsinterface.h" | 33 #include "third_party/webrtc/api/mediaconstraintsinterface.h" |
| 33 #include "third_party/webrtc/modules/audio_processing/typing_detection.h" | 34 #include "third_party/webrtc/modules/audio_processing/typing_detection.h" |
| 35 #undef FOURCC // Leaky macro from both libyuv and webrtc |
| 34 | 36 |
| 35 namespace content { | 37 namespace content { |
| 36 | 38 |
| 37 namespace { | 39 namespace { |
| 38 | 40 |
| 39 using webrtc::AudioProcessing; | 41 using webrtc::AudioProcessing; |
| 40 using webrtc::NoiseSuppression; | 42 using webrtc::NoiseSuppression; |
| 41 | 43 |
| 42 const int kAudioProcessingNumberOfChannels = 1; | 44 const int kAudioProcessingNumberOfChannels = 1; |
| 43 | 45 |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 0 : agc->stream_analog_level(); | 882 0 : agc->stream_analog_level(); |
| 881 } | 883 } |
| 882 | 884 |
| 883 void MediaStreamAudioProcessor::UpdateAecStats() { | 885 void MediaStreamAudioProcessor::UpdateAecStats() { |
| 884 DCHECK(main_thread_runner_->BelongsToCurrentThread()); | 886 DCHECK(main_thread_runner_->BelongsToCurrentThread()); |
| 885 if (echo_information_) | 887 if (echo_information_) |
| 886 echo_information_->UpdateAecStats(audio_processing_->echo_cancellation()); | 888 echo_information_->UpdateAecStats(audio_processing_->echo_cancellation()); |
| 887 } | 889 } |
| 888 | 890 |
| 889 } // namespace content | 891 } // namespace content |
| OLD | NEW |