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

Side by Side Diff: content/renderer/media/webrtc_audio_capturer.cc

Issue 1275783003: Add a virtual beamforming audio device on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: aluebs comments. Created 5 years, 3 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 | « content/renderer/media/mock_media_constraint_factory.cc ('k') | media/BUILD.gn » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/webrtc_audio_capturer.h" 5 #include "content/renderer/media/webrtc_audio_capturer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 WebRtcAudioCapturer::WebRtcAudioCapturer( 238 WebRtcAudioCapturer::WebRtcAudioCapturer(
239 int render_frame_id, 239 int render_frame_id,
240 const StreamDeviceInfo& device_info, 240 const StreamDeviceInfo& device_info,
241 const blink::WebMediaConstraints& constraints, 241 const blink::WebMediaConstraints& constraints,
242 WebRtcAudioDeviceImpl* audio_device, 242 WebRtcAudioDeviceImpl* audio_device,
243 MediaStreamAudioSource* audio_source) 243 MediaStreamAudioSource* audio_source)
244 : constraints_(constraints), 244 : constraints_(constraints),
245 audio_processor_(new rtc::RefCountedObject<MediaStreamAudioProcessor>( 245 audio_processor_(new rtc::RefCountedObject<MediaStreamAudioProcessor>(
246 constraints, 246 constraints,
247 device_info.device.input.effects, 247 device_info.device.input,
248 audio_device)), 248 audio_device)),
249 running_(false), 249 running_(false),
250 render_frame_id_(render_frame_id), 250 render_frame_id_(render_frame_id),
251 device_info_(device_info), 251 device_info_(device_info),
252 volume_(0), 252 volume_(0),
253 peer_connection_mode_(false), 253 peer_connection_mode_(false),
254 audio_device_(audio_device), 254 audio_device_(audio_device),
255 audio_source_(audio_source) { 255 audio_source_(audio_source) {
256 DVLOG(1) << "WebRtcAudioCapturer::WebRtcAudioCapturer()"; 256 DVLOG(1) << "WebRtcAudioCapturer::WebRtcAudioCapturer()";
257 } 257 }
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 const scoped_refptr<media::AudioCapturerSource>& source, 616 const scoped_refptr<media::AudioCapturerSource>& source,
617 media::AudioParameters params) { 617 media::AudioParameters params) {
618 // Create a new audio stream as source which uses the new source. 618 // Create a new audio stream as source which uses the new source.
619 SetCapturerSourceInternal(source, 619 SetCapturerSourceInternal(source,
620 params.channel_layout(), 620 params.channel_layout(),
621 params.sample_rate(), 621 params.sample_rate(),
622 0); 622 0);
623 } 623 }
624 624
625 } // namespace content 625 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/mock_media_constraint_factory.cc ('k') | media/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698