Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: content/renderer/media/

Issue 12440027: Do not pass the string device_id via IPC message to create an audio input stream (Closed) Base URL: svn://
Patch Set: addressed Per's comments. Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/
diff --git a/content/renderer/media/ b/content/renderer/media/
index 4fb749202e99a4483d61ce37b9ce4e2e2c45cf81..2d111e0f5de5e2fe3e4ee03e65f40cd7d1f09c21 100644
--- a/content/renderer/media/
+++ b/content/renderer/media/
@@ -100,11 +100,9 @@ bool InitializeCapturer(WebRtcAudioDeviceImpl* webrtc_audio_device) {
int sample_rate = hardware_config->GetInputSampleRate();
media::ChannelLayout channel_layout =
- if (!capturer->Initialize(channel_layout, sample_rate))
+ if (!capturer->Initialize(channel_layout, sample_rate, 1))
return false;
- // Ensures that the default capture device is utilized.
- webrtc_audio_device->capturer()->SetDevice(1);
return true;
« no previous file with comments | « content/renderer/media/ ('k') | content/renderer/pepper/pepper_platform_audio_input_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698