OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROMEOS_AUDIO_AUDIO_DEVICE_H_ | 5 #ifndef CHROMEOS_AUDIO_AUDIO_DEVICE_H_ |
6 #define CHROMEOS_AUDIO_AUDIO_DEVICE_H_ | 6 #define CHROMEOS_AUDIO_AUDIO_DEVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 type == AUDIO_TYPE_INTERNAL_MIC || | 50 type == AUDIO_TYPE_INTERNAL_MIC || |
51 type == AUDIO_TYPE_MIC || | 51 type == AUDIO_TYPE_MIC || |
52 type == AUDIO_TYPE_USB || | 52 type == AUDIO_TYPE_USB || |
53 type == AUDIO_TYPE_BLUETOOTH || | 53 type == AUDIO_TYPE_BLUETOOTH || |
54 type == AUDIO_TYPE_HDMI || | 54 type == AUDIO_TYPE_HDMI || |
55 type == AUDIO_TYPE_INTERNAL_SPEAKER); | 55 type == AUDIO_TYPE_INTERNAL_SPEAKER); |
56 } | 56 } |
57 | 57 |
58 bool is_input; | 58 bool is_input; |
59 uint64 id; | 59 uint64 id; |
| 60 uint64 stable_device_id; |
60 std::string display_name; | 61 std::string display_name; |
61 std::string device_name; | 62 std::string device_name; |
62 std::string mic_positions; | 63 std::string mic_positions; |
63 AudioDeviceType type; | 64 AudioDeviceType type; |
64 uint8 priority; | 65 uint8 priority; |
65 bool active; | 66 bool active; |
66 uint64 plugged_time; | 67 uint64 plugged_time; |
67 }; | 68 }; |
68 | 69 |
69 typedef std::vector<AudioDevice> AudioDeviceList; | 70 typedef std::vector<AudioDevice> AudioDeviceList; |
(...skipping 16 matching lines...) Expand all Loading... |
86 return true; | 87 return true; |
87 } else { | 88 } else { |
88 return false; | 89 return false; |
89 } | 90 } |
90 } | 91 } |
91 }; | 92 }; |
92 | 93 |
93 } // namespace chromeos | 94 } // namespace chromeos |
94 | 95 |
95 #endif // CHROMEOS_AUDIO_AUDIO_DEVICE_H_ | 96 #endif // CHROMEOS_AUDIO_AUDIO_DEVICE_H_ |
OLD | NEW |