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

Unified Diff: content/renderer/media/webrtc_audio_device_unittest.cc

Issue 12440027: Do not pass the string device_id via IPC message to create an audio input stream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed palmer'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/webrtc_audio_device_unittest.cc
diff --git a/content/renderer/media/webrtc_audio_device_unittest.cc b/content/renderer/media/webrtc_audio_device_unittest.cc
index e04eafc94bb15c7b34bb3dac77dae6c785a105a4..a9c9fd1fceec8d92577dfbee7a8154dbb8e0d0f7 100644
--- a/content/renderer/media/webrtc_audio_device_unittest.cc
+++ b/content/renderer/media/webrtc_audio_device_unittest.cc
@@ -100,11 +100,9 @@ bool InitializeCapturer(WebRtcAudioDeviceImpl* webrtc_audio_device) {
int sample_rate = hardware_config->GetInputSampleRate();
media::ChannelLayout channel_layout =
hardware_config->GetInputChannelLayout();
- 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;
}

Powered by Google App Engine
This is Rietveld 408576698