OLD | NEW |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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_config.idl modified Wed Aug 17 11:16:34 2011. */ | 6 /* From ppb_audio_config.idl modified Wed Aug 24 20:49:30 2011. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPB_AUDIO_CONFIG_H_ | 8 #ifndef PPAPI_C_PPB_AUDIO_CONFIG_H_ |
9 #define PPAPI_C_PPB_AUDIO_CONFIG_H_ | 9 #define PPAPI_C_PPB_AUDIO_CONFIG_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
16 | 16 |
17 #define PPB_AUDIO_CONFIG_INTERFACE_0_5 "PPB_AudioConfig;0.5" | |
18 #define PPB_AUDIO_CONFIG_INTERFACE_1_0 "PPB_AudioConfig;1.0" | 17 #define PPB_AUDIO_CONFIG_INTERFACE_1_0 "PPB_AudioConfig;1.0" |
19 #define PPB_AUDIO_CONFIG_INTERFACE PPB_AUDIO_CONFIG_INTERFACE_1_0 | 18 #define PPB_AUDIO_CONFIG_INTERFACE PPB_AUDIO_CONFIG_INTERFACE_1_0 |
20 | 19 |
21 /** | 20 /** |
22 * @file | 21 * @file |
23 * This file defines the PPB_AudioConfig interface for establishing an | 22 * This file defines the PPB_AudioConfig interface for establishing an |
24 * audio configuration resource within the browser. | 23 * audio configuration resource within the browser. |
25 */ | 24 */ |
26 | 25 |
27 | 26 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 * <code>PP_AUDIOSAMPLERATE_NONE</code> if the resource is invalid. | 151 * <code>PP_AUDIOSAMPLERATE_NONE</code> if the resource is invalid. |
153 */ | 152 */ |
154 PP_AudioSampleRate (*GetSampleRate)(PP_Resource config); | 153 PP_AudioSampleRate (*GetSampleRate)(PP_Resource config); |
155 /** | 154 /** |
156 * GetSampleFrameCount() returns the sample frame count for the given | 155 * GetSampleFrameCount() returns the sample frame count for the given |
157 * <code>PPB_Audio_Config</code>. | 156 * <code>PPB_Audio_Config</code>. |
158 * | 157 * |
159 * @param[in] config A <code>PP_Resource</code> containing the audio config | 158 * @param[in] config A <code>PP_Resource</code> containing the audio config |
160 * resource. | 159 * resource. |
161 * @return A <code>uint32_t</code> containing sample frame count or | 160 * @return A <code>uint32_t</code> containing sample frame count or |
162 * 0 if the resource is invalid. Refer to | 161 * 0 if the resource is invalid. See <code>RecommendSampleFrameCount</code> |
163 * <code>RecommendSampleFrameCount</code> for more information on sample | 162 * for more on sample frame counts. |
164 * frame counts. | |
165 */ | 163 */ |
166 uint32_t (*GetSampleFrameCount)(PP_Resource config); | 164 uint32_t (*GetSampleFrameCount)(PP_Resource config); |
167 }; | 165 }; |
168 /** | 166 /** |
169 * @} | 167 * @} |
170 */ | 168 */ |
171 | 169 |
172 #endif /* PPAPI_C_PPB_AUDIO_CONFIG_H_ */ | 170 #endif /* PPAPI_C_PPB_AUDIO_CONFIG_H_ */ |
173 | 171 |
OLD | NEW |