Chromium Code Reviews| Index: components/copresence/public/copresence_constants.h |
| diff --git a/components/copresence/public/copresence_constants.h b/components/copresence/public/copresence_constants.h |
| index 1c2499d7e5cb11d2b27e93b2a6f5f797384ad4ee..cbde5fc08ab39b4150c37cc87ca453a0b36dccdd 100644 |
| --- a/components/copresence/public/copresence_constants.h |
| +++ b/components/copresence/public/copresence_constants.h |
| @@ -27,6 +27,17 @@ extern const float kDefaultCarrierFrequency; |
| extern const int kDefaultChannels; |
| extern const media::ChannelLayout kDefaultChannelLayout; |
| +// These constants are used from everywhere. |
| +// Particularly, these are used to index the directive lists in the |
| +// audio manager, so do not change these enums without changing |
| +// audio_directive_list.[h|cc]. |
| +enum AudioType { |
| + AUDIBLE = 0, |
| + INAUDIBLE = 1, |
| + BOTH = 2, |
| + UNKNOWN = 3, |
|
Daniel Erat
2014/10/22 16:34:35
might've mentioned this already, but "UNKNOWN" see
rkc
2014/10/22 18:21:48
So the enum name is the documentation that this is
Daniel Erat
2014/10/22 18:32:40
ah, i didn't know about the c++11 angle. my main c
rkc
2014/10/22 19:28:46
Ah yes, that would still be a problem even despite
|
| +}; |
| + |
| } // namespace copresence |
| #endif // COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_ |