Chromium Code Reviews| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 type == AUDIO_TYPE_INTERNAL_MIC || | 51 type == AUDIO_TYPE_INTERNAL_MIC || |
| 52 type == AUDIO_TYPE_MIC || | 52 type == AUDIO_TYPE_MIC || |
| 53 type == AUDIO_TYPE_USB || | 53 type == AUDIO_TYPE_USB || |
| 54 type == AUDIO_TYPE_BLUETOOTH || | 54 type == AUDIO_TYPE_BLUETOOTH || |
| 55 type == AUDIO_TYPE_HDMI || | 55 type == AUDIO_TYPE_HDMI || |
| 56 type == AUDIO_TYPE_INTERNAL_SPEAKER); | 56 type == AUDIO_TYPE_INTERNAL_SPEAKER); |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool is_input; | 59 bool is_input; |
| 60 uint64_t id; | 60 uint64_t id; |
| 61 uint64_t stable_device_id; | |
|
Daniel Erat
2016/01/07 17:31:12
document the difference between this and id. why d
hychao
2016/01/11 07:02:32
Done. Added comment to describe the two IDs. There
| |
| 61 std::string display_name; | 62 std::string display_name; |
| 62 std::string device_name; | 63 std::string device_name; |
| 63 std::string mic_positions; | 64 std::string mic_positions; |
| 64 AudioDeviceType type; | 65 AudioDeviceType type; |
| 65 uint8_t priority; | 66 uint8_t priority; |
| 66 bool active; | 67 bool active; |
| 67 uint64_t plugged_time; | 68 uint64_t plugged_time; |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 typedef std::vector<AudioDevice> AudioDeviceList; | 71 typedef std::vector<AudioDevice> AudioDeviceList; |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 87 return true; | 88 return true; |
| 88 } else { | 89 } else { |
| 89 return false; | 90 return false; |
| 90 } | 91 } |
| 91 } | 92 } |
| 92 }; | 93 }; |
| 93 | 94 |
| 94 } // namespace chromeos | 95 } // namespace chromeos |
| 95 | 96 |
| 96 #endif // CHROMEOS_AUDIO_AUDIO_DEVICE_H_ | 97 #endif // CHROMEOS_AUDIO_AUDIO_DEVICE_H_ |
| OLD | NEW |