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

Unified Diff: content/renderer/media/webrtc_audio_device_impl.h

Issue 15979015: Reland 15721002: Hook up the device selection to the WebAudio live audio (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed the comments. Created 7 years, 7 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_impl.h
diff --git a/content/renderer/media/webrtc_audio_device_impl.h b/content/renderer/media/webrtc_audio_device_impl.h
index e740a5954f7f79b1371af772a58018ac7da0f10a..960d0d0d985dc45e4622f9d6fb3f08b2f46eeec4 100644
--- a/content/renderer/media/webrtc_audio_device_impl.h
+++ b/content/renderer/media/webrtc_audio_device_impl.h
@@ -24,13 +24,11 @@
// webrtc::AudioDeviceModule which makes it possible for a user (e.g. webrtc::
// VoiceEngine) to register this class as an external AudioDeviceModule (ADM).
// Then WebRtcAudioDeviceImpl::SetSessionId() needs to be called to set the
-// session id that tells which device to use. The user can either get the
-// session id from the MediaStream or use a value of 1 (AudioInputDeviceManager
-// ::kFakeOpenSessionId), the later will open the default device without going
-// through the MediaStream. The user can then call WebRtcAudioDeviceImpl::
-// StartPlayout() and WebRtcAudioDeviceImpl::StartRecording() from the render
-// process to initiate and start audio rendering and capturing in the browser
-// process. IPC is utilized to set up the media streams.
+// session id that tells which device to use. The user can then call
+// WebRtcAudioDeviceImpl::StartPlayout() and
+// WebRtcAudioDeviceImpl::StartRecording() from the render process to initiate
+// and start audio rendering and capturing in the browser process. IPC is
+// utilized to set up the media streams.
//
// Usage example:
//
@@ -39,7 +37,7 @@
// {
// scoped_refptr<WebRtcAudioDeviceImpl> external_adm;
// external_adm = new WebRtcAudioDeviceImpl();
-// external_adm->SetSessionId(1);
+// external_adm->SetSessionId(session_id);
// VoiceEngine* voe = VoiceEngine::Create();
// VoEBase* base = VoEBase::GetInterface(voe);
// base->Init(external_adm);

Powered by Google App Engine
This is Rietveld 408576698