| 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 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ |
| 7 | 7 |
| 8 #include "base/atomicops.h" | 8 #include "base/atomicops.h" |
| 9 #include "base/files/file.h" | 9 #include "base/files/file.h" |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 int audio_delay_milliseconds) override; | 121 int audio_delay_milliseconds) override; |
| 122 void OnPlayoutDataSourceChanged() override; | 122 void OnPlayoutDataSourceChanged() override; |
| 123 | 123 |
| 124 // webrtc::AudioProcessorInterface implementation. | 124 // webrtc::AudioProcessorInterface implementation. |
| 125 // This method is called on the libjingle thread. | 125 // This method is called on the libjingle thread. |
| 126 void GetStats(AudioProcessorStats* stats) override; | 126 void GetStats(AudioProcessorStats* stats) override; |
| 127 | 127 |
| 128 // Helper to initialize the WebRtc AudioProcessing. | 128 // Helper to initialize the WebRtc AudioProcessing. |
| 129 void InitializeAudioProcessingModule( | 129 void InitializeAudioProcessingModule( |
| 130 const blink::WebMediaConstraints& constraints, int effects); | 130 const blink::WebMediaConstraints& constraints, int effects); |
| 131 void ConfigureBeamforming(webrtc::Config* config); | |
| 132 | 131 |
| 133 // Helper to initialize the capture converter. | 132 // Helper to initialize the capture converter. |
| 134 void InitializeCaptureFifo(const media::AudioParameters& input_format); | 133 void InitializeCaptureFifo(const media::AudioParameters& input_format); |
| 135 | 134 |
| 136 // Helper to initialize the render converter. | 135 // Helper to initialize the render converter. |
| 137 void InitializeRenderFifoIfNeeded(int sample_rate, | 136 void InitializeRenderFifoIfNeeded(int sample_rate, |
| 138 int number_of_channels, | 137 int number_of_channels, |
| 139 int frames_per_buffer); | 138 int frames_per_buffer); |
| 140 | 139 |
| 141 // Called by ProcessAndConsumeData(). | 140 // Called by ProcessAndConsumeData(). |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 // Object for logging echo information when the AEC is enabled. Accessible by | 199 // Object for logging echo information when the AEC is enabled. Accessible by |
| 201 // the libjingle thread through GetStats(). | 200 // the libjingle thread through GetStats(). |
| 202 scoped_ptr<EchoInformation> echo_information_; | 201 scoped_ptr<EchoInformation> echo_information_; |
| 203 | 202 |
| 204 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioProcessor); | 203 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioProcessor); |
| 205 }; | 204 }; |
| 206 | 205 |
| 207 } // namespace content | 206 } // namespace content |
| 208 | 207 |
| 209 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ | 208 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ |
| OLD | NEW |