commit | a3154d3d22c1d9d0196737ccf9732ac1e219b6af | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Mon Oct 05 10:23:25 2020 -0700 |
committer | Mikhail Naganov <mnaganov@google.com> | Thu Oct 08 17:24:35 2020 +0000 |
tree | 8a18914ea8a45a76b4adce94e69ff8d7f2a6193a | |
parent | 95d24a74ce0c9879e51ea1aaea2d406d530bef34 [diff] |
Convert mask types from uint32_t to enum type This applies to the following types: - audio_gain_mode_t; - audio_flags_mask_t; - audio_channel_representation_t; - audio_channel_mask_t; - audio_devices_t. Enum types are distinct thus proper overloading on the type is possible in C++. Also, assignments to enum types are less prone to errors. Bug: 169889714 Test: basic audio functionality Change-Id: Ibcb573cd64db56a5c31a6a579c6e1c34fedb12f6