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

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

Issue 23731007: Implicit audio output device selection for getUserMedia. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/media_stream_impl.h
diff --git a/content/renderer/media/media_stream_impl.h b/content/renderer/media/media_stream_impl.h
index 1cd4479ce72f7300ef87c5d3827d4bbf2759254e..adad70186a3b2f45346a6af6b6928289a3123e3a 100644
--- a/content/renderer/media/media_stream_impl.h
+++ b/content/renderer/media/media_stream_impl.h
@@ -155,6 +155,15 @@ class CONTENT_EXPORT MediaStreamImpl
void StopLocalAudioTrack(const WebKit::WebMediaStream& web_stream);
+ // Returns a valid session id if a single capture device is currently open
+ // (and then the matching session_id), otherwise -1.
+ // This is used to pass on a session id to a webrtc audio renderer (either
+ // local or remote), so that audio will be rendered to a matching output
+ // device, should one exist.
+ // Note that if there are more than one open capture devices
Jói 2013/09/06 14:49:26 This sentence does not
tommi (sloooow) - chröme 2013/09/06 16:56:54 Doh! fixed
+ bool GetAuthorizedInputDeviceSessionIdForAudioRenderer(int* session_id,
Jói 2013/09/06 14:49:26 I think style is either all indent to ( or all ind
tommi (sloooow) - chröme 2013/09/06 16:56:54 Done.
+ int* output_sample_rate, int* output_buffer_size);
+
// Weak ref to a MediaStreamDependencyFactory, owned by the RenderThread.
// It's valid for the lifetime of RenderThread.
MediaStreamDependencyFactory* dependency_factory_;

Powered by Google App Engine
This is Rietveld 408576698