Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: content/renderer/media/media_stream_audio_processor.h

Issue 833643005: Add a media constraint to enable beamforming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Declare and initialize geometry at once Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/renderer/media/media_stream_audio_processor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/media_stream_audio_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698