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 PPAPI_CPP_AUDIO_CONFIG_H_ | 5 #ifndef PPAPI_CPP_AUDIO_CONFIG_H_ |
6 #define PPAPI_CPP_AUDIO_CONFIG_H_ | 6 #define PPAPI_CPP_AUDIO_CONFIG_H_ |
7 | 7 |
8 #include "ppapi/c/ppb_audio_config.h" | 8 #include "ppapi/c/ppb_audio_config.h" |
9 #include "ppapi/c/pp_stdint.h" | 9 #include "ppapi/c/pp_stdint.h" |
10 #include "ppapi/cpp/resource.h" | 10 #include "ppapi/cpp/resource.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 /// Getter function for returning the internal | 114 /// Getter function for returning the internal |
115 /// <code>PP_AudioSampleRate</code> enum. | 115 /// <code>PP_AudioSampleRate</code> enum. |
116 /// | 116 /// |
117 /// @return The <code>PP_AudioSampleRate</code> enum. | 117 /// @return The <code>PP_AudioSampleRate</code> enum. |
118 PP_AudioSampleRate sample_rate() const { return sample_rate_; } | 118 PP_AudioSampleRate sample_rate() const { return sample_rate_; } |
119 | 119 |
120 /// Getter function for returning the internal sample frame count. | 120 /// Getter function for returning the internal sample frame count. |
121 /// | 121 /// |
122 /// @return A uint32_t containing the sample frame count. | 122 /// @return A uint32_t containing the sample frame count. |
123 uint32_t sample_frame_count() { return sample_frame_count_; } | 123 uint32_t sample_frame_count() const { return sample_frame_count_; } |
124 | 124 |
125 private: | 125 private: |
126 PP_AudioSampleRate sample_rate_; | 126 PP_AudioSampleRate sample_rate_; |
127 uint32_t sample_frame_count_; | 127 uint32_t sample_frame_count_; |
128 }; | 128 }; |
129 | 129 |
130 } // namespace pp | 130 } // namespace pp |
131 | 131 |
132 #endif // PPAPI_CPP_AUDIO_CONFIG_H_ | 132 #endif // PPAPI_CPP_AUDIO_CONFIG_H_ |
133 | 133 |
OLD | NEW |