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

Unified Diff: content/public/common/media_stream_request.h

Issue 11783059: Ensures that WebRTC works for device selection using a different sample rate than default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed content_unittests Created 7 years, 11 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/public/common/media_stream_request.h
diff --git a/content/public/common/media_stream_request.h b/content/public/common/media_stream_request.h
index e50d4e91a2d74bf9e81a53c5d4b34778f8a53dde..57e08975d97472a30a476e6c5f13cd94e8283413 100644
--- a/content/public/common/media_stream_request.h
+++ b/content/public/common/media_stream_request.h
@@ -53,6 +53,13 @@ struct CONTENT_EXPORT MediaStreamDevice {
const std::string& id,
const std::string& name);
+ MediaStreamDevice(
+ MediaStreamType type,
+ const std::string& id,
+ const std::string& name,
+ int sample_rate,
Jói 2013/01/15 22:30:20 Document what the defaults for sample_rate and cha
henrika (OOO until Aug 14) 2013/01/16 16:37:17 Done.
+ int channel_layout);
+
~MediaStreamDevice();
// The device's type.
@@ -63,6 +70,16 @@ struct CONTENT_EXPORT MediaStreamDevice {
// The device's "friendly" name. Not guaranteed to be unique.
std::string name;
+
+ // Preferred sample rate in samples per second for the device.
+ // Only utilized for audio devices.
+ int sample_rate;
Jói 2013/01/15 22:30:20 Are the new struct members (sample_rate, channel_l
henrika (OOO until Aug 14) 2013/01/16 16:37:17 No they are not (accessed outside content that is)
Jói 2013/01/16 17:12:01 The IPC definitions are inside content (i.e. not i
+
+ // Preferred channel configuration for the device.
+ // Only utilized for audio devices.
+ // TODO(henrika): ideally, we would like to use media::ChannelLayout here
+ // but including media/base/channel_layout.h violates checkdeps rules.
+ int channel_layout;
};
typedef std::vector<MediaStreamDevice> MediaStreamDevices;

Powered by Google App Engine
This is Rietveld 408576698