| OLD | NEW |
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 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 | 5 |
| 6 /* From ppb_audio_buffer.idl modified Mon Mar 10 20:21:25 2014. */ | 6 /* From ppb_audio_buffer.idl modified Tue Mar 25 18:29:27 2014. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_AUDIO_BUFFER_H_ | 8 #ifndef PPAPI_C_PPB_AUDIO_BUFFER_H_ |
| 9 #define PPAPI_C_PPB_AUDIO_BUFFER_H_ | 9 #define PPAPI_C_PPB_AUDIO_BUFFER_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_macros.h" | 12 #include "ppapi/c/pp_macros.h" |
| 13 #include "ppapi/c/pp_resource.h" | 13 #include "ppapi/c/pp_resource.h" |
| 14 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
| 15 #include "ppapi/c/pp_time.h" | 15 #include "ppapi/c/pp_time.h" |
| 16 | 16 |
| 17 #define PPB_AUDIOBUFFER_INTERFACE_0_1 "PPB_AudioBuffer;0.1" /* dev */ | 17 #define PPB_AUDIOBUFFER_INTERFACE_0_1 "PPB_AudioBuffer;0.1" |
| 18 #define PPB_AUDIOBUFFER_INTERFACE PPB_AUDIOBUFFER_INTERFACE_0_1 |
| 19 |
| 18 /** | 20 /** |
| 19 * @file | 21 * @file |
| 20 * Defines the <code>PPB_AudioBuffer</code> interface. | 22 * Defines the <code>PPB_AudioBuffer</code> interface. |
| 21 */ | 23 */ |
| 22 | 24 |
| 23 | 25 |
| 24 /** | 26 /** |
| 25 * @addtogroup Enums | 27 * @addtogroup Enums |
| 26 * @{ | 28 * @{ |
| 27 */ | 29 */ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 50 PP_AUDIOBUFFER_SAMPLESIZE_16_BITS = 2 | 52 PP_AUDIOBUFFER_SAMPLESIZE_16_BITS = 2 |
| 51 } PP_AudioBuffer_SampleSize; | 53 } PP_AudioBuffer_SampleSize; |
| 52 /** | 54 /** |
| 53 * @} | 55 * @} |
| 54 */ | 56 */ |
| 55 | 57 |
| 56 /** | 58 /** |
| 57 * @addtogroup Interfaces | 59 * @addtogroup Interfaces |
| 58 * @{ | 60 * @{ |
| 59 */ | 61 */ |
| 60 struct PPB_AudioBuffer_0_1 { /* dev */ | 62 struct PPB_AudioBuffer_0_1 { |
| 61 /** | 63 /** |
| 62 * Determines if a resource is an AudioBuffer resource. | 64 * Determines if a resource is an AudioBuffer resource. |
| 63 * | 65 * |
| 64 * @param[in] resource The <code>PP_Resource</code> to test. | 66 * @param[in] resource The <code>PP_Resource</code> to test. |
| 65 * | 67 * |
| 66 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given | 68 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given |
| 67 * resource is an AudioBuffer resource or <code>PP_FALSE</code> otherwise. | 69 * resource is an AudioBuffer resource or <code>PP_FALSE</code> otherwise. |
| 68 */ | 70 */ |
| 69 PP_Bool (*IsAudioBuffer)(PP_Resource resource); | 71 PP_Bool (*IsAudioBuffer)(PP_Resource resource); |
| 70 /** | 72 /** |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 /** | 139 /** |
| 138 * Gets the size of the data buffer in bytes. | 140 * Gets the size of the data buffer in bytes. |
| 139 * | 141 * |
| 140 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio | 142 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio |
| 141 * buffer resource. | 143 * buffer resource. |
| 142 * | 144 * |
| 143 * @return The size of the data buffer in bytes. | 145 * @return The size of the data buffer in bytes. |
| 144 */ | 146 */ |
| 145 uint32_t (*GetDataBufferSize)(PP_Resource buffer); | 147 uint32_t (*GetDataBufferSize)(PP_Resource buffer); |
| 146 }; | 148 }; |
| 149 |
| 150 typedef struct PPB_AudioBuffer_0_1 PPB_AudioBuffer; |
| 147 /** | 151 /** |
| 148 * @} | 152 * @} |
| 149 */ | 153 */ |
| 150 | 154 |
| 151 #endif /* PPAPI_C_PPB_AUDIO_BUFFER_H_ */ | 155 #endif /* PPAPI_C_PPB_AUDIO_BUFFER_H_ */ |
| 152 | 156 |
| OLD | NEW |