| 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); |
| 131 | 132 |
| 132 // Helper to initialize the capture converter. | 133 // Helper to initialize the capture converter. |
| 133 void InitializeCaptureFifo(const media::AudioParameters& input_format); | 134 void InitializeCaptureFifo(const media::AudioParameters& input_format); |
| 134 | 135 |
| 135 // Helper to initialize the render converter. | 136 // Helper to initialize the render converter. |
| 136 void InitializeRenderFifoIfNeeded(int sample_rate, | 137 void InitializeRenderFifoIfNeeded(int sample_rate, |
| 137 int number_of_channels, | 138 int number_of_channels, |
| 138 int frames_per_buffer); | 139 int frames_per_buffer); |
| 139 | 140 |
| 140 // Called by ProcessAndConsumeData(). | 141 // Called by ProcessAndConsumeData(). |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Object for logging echo information when the AEC is enabled. Accessible by | 200 // Object for logging echo information when the AEC is enabled. Accessible by |
| 200 // the libjingle thread through GetStats(). | 201 // the libjingle thread through GetStats(). |
| 201 scoped_ptr<EchoInformation> echo_information_; | 202 scoped_ptr<EchoInformation> echo_information_; |
| 202 | 203 |
| 203 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioProcessor); | 204 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioProcessor); |
| 204 }; | 205 }; |
| 205 | 206 |
| 206 } // namespace content | 207 } // namespace content |
| 207 | 208 |
| 208 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ | 209 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ |
| OLD | NEW |