| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ | 5 #ifndef CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ |
| 6 #define CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ | 6 #define CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 StreamDeviceInfo(); | 45 StreamDeviceInfo(); |
| 46 StreamDeviceInfo(MediaStreamType service_param, | 46 StreamDeviceInfo(MediaStreamType service_param, |
| 47 const std::string& name_param, | 47 const std::string& name_param, |
| 48 const std::string& device_param, | 48 const std::string& device_param, |
| 49 bool opened); | 49 bool opened); |
| 50 StreamDeviceInfo(MediaStreamType service_param, | 50 StreamDeviceInfo(MediaStreamType service_param, |
| 51 const std::string& name_param, | 51 const std::string& name_param, |
| 52 const std::string& device_param, | 52 const std::string& device_param, |
| 53 int sample_rate, | 53 int sample_rate, |
| 54 int channel_layout, | 54 int channel_layout, |
| 55 int frames_per_buffer, |
| 55 bool opened); | 56 bool opened); |
| 56 static bool IsEqual(const StreamDeviceInfo& first, | 57 static bool IsEqual(const StreamDeviceInfo& first, |
| 57 const StreamDeviceInfo& second); | 58 const StreamDeviceInfo& second); |
| 58 | 59 |
| 59 MediaStreamDevice device; | 60 MediaStreamDevice device; |
| 61 |
| 60 // Set to true if the device has been opened, false otherwise. | 62 // Set to true if the device has been opened, false otherwise. |
| 61 bool in_use; | 63 bool in_use; |
| 62 // Id for this capture session. Unique for all sessions of the same type. | 64 // Id for this capture session. Unique for all sessions of the same type. |
| 63 int session_id; | 65 int session_id; |
| 64 }; | 66 }; |
| 65 | 67 |
| 66 typedef std::vector<StreamDeviceInfo> StreamDeviceInfoArray; | 68 typedef std::vector<StreamDeviceInfo> StreamDeviceInfoArray; |
| 67 | 69 |
| 68 } // namespace content | 70 } // namespace content |
| 69 | 71 |
| 70 #endif // CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ | 72 #endif // CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ |
| OLD | NEW |