| 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 d29a809cde06e0c197e592ca897e0e9c93149a49..5ff24e250fef74fa477e2369e4d64ce6979f8dc7 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,
|
| + int channel_layout);
|
| +
|
| ~MediaStreamDevice();
|
|
|
| // The device's type.
|
| @@ -63,6 +70,18 @@ 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. Will be set to 0 if the constructor
|
| + // with three parameters (intended for video) is used.
|
| + int sample_rate;
|
| +
|
| + // Preferred channel configuration for the device.
|
| + // Only utilized for audio devices. Will be set to 0 if the constructor
|
| + // with three parameters (intended for video) is used.
|
| + // 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;
|
|
|