Chromium Code Reviews| 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; |