| 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_frame.idl modified Thu Jan 9 14:39:24 2014. */ | 6 /* From ppb_audio_frame.idl modified Thu Jan 16 15:39:03 2014. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_AUDIO_FRAME_H_ | 8 #ifndef PPAPI_C_PPB_AUDIO_FRAME_H_ |
| 9 #define PPAPI_C_PPB_AUDIO_FRAME_H_ | 9 #define PPAPI_C_PPB_AUDIO_FRAME_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 #include "ppapi/c/ppb_audio_config.h" |
| 16 | 17 |
| 17 #define PPB_AUDIOFRAME_INTERFACE_0_1 "PPB_AudioFrame;0.1" /* dev */ | 18 #define PPB_AUDIOFRAME_INTERFACE_0_1 "PPB_AudioFrame;0.1" /* dev */ |
| 18 /** | 19 /** |
| 19 * @file | 20 * @file |
| 20 * Defines the <code>PPB_AudioFrame</code> interface. | 21 * Defines the <code>PPB_AudioFrame</code> interface. |
| 21 */ | 22 */ |
| 22 | 23 |
| 23 | 24 |
| 24 /** | 25 /** |
| 25 * @addtogroup Interfaces | 26 * @addtogroup Interfaces |
| (...skipping 23 matching lines...) Expand all Loading... |
| 49 * Sets the timestamp of the audio frame. | 50 * Sets the timestamp of the audio frame. |
| 50 * | 51 * |
| 51 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame | 52 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame |
| 52 * resource. | 53 * resource. |
| 53 * @param[in] timestamp A <code>PP_TimeDelta</code> containing the timestamp | 54 * @param[in] timestamp A <code>PP_TimeDelta</code> containing the timestamp |
| 54 * of the audio frame. Given in seconds since the start of the containing | 55 * of the audio frame. Given in seconds since the start of the containing |
| 55 * audio stream. | 56 * audio stream. |
| 56 */ | 57 */ |
| 57 void (*SetTimestamp)(PP_Resource frame, PP_TimeDelta timestamp); | 58 void (*SetTimestamp)(PP_Resource frame, PP_TimeDelta timestamp); |
| 58 /** | 59 /** |
| 60 * Gets the sample rate of the audio frame. |
| 61 * |
| 62 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame |
| 63 * resource. |
| 64 * |
| 65 * @return The sample rate of the audio frame. |
| 66 */ |
| 67 PP_AudioSampleRate (*GetSampleRate)(PP_Resource frame); |
| 68 /** |
| 59 * Gets the sample size of the audio frame. | 69 * Gets the sample size of the audio frame. |
| 60 * | 70 * |
| 61 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame | 71 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame |
| 62 * resource. | 72 * resource. |
| 63 * | 73 * |
| 64 * @return The sample size of the audio frame. | 74 * @return The sample size of the audio frame. |
| 65 */ | 75 */ |
| 66 uint32_t (*GetSampleSize)(PP_Resource frame); | 76 uint32_t (*GetSampleSize)(PP_Resource frame); |
| 67 /** | 77 /** |
| 68 * Gets the number of channels in the audio frame. | 78 * Gets the number of channels in the audio frame. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 * @return The size of the data buffer in bytes. | 112 * @return The size of the data buffer in bytes. |
| 103 */ | 113 */ |
| 104 uint32_t (*GetDataBufferSize)(PP_Resource frame); | 114 uint32_t (*GetDataBufferSize)(PP_Resource frame); |
| 105 }; | 115 }; |
| 106 /** | 116 /** |
| 107 * @} | 117 * @} |
| 108 */ | 118 */ |
| 109 | 119 |
| 110 #endif /* PPAPI_C_PPB_AUDIO_FRAME_H_ */ | 120 #endif /* PPAPI_C_PPB_AUDIO_FRAME_H_ */ |
| 111 | 121 |
| OLD | NEW |