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 Sat Jul 16 16:50:26 2011. */ | 6 /* From ppb_audio_config.idl modified Tue Aug 16 10:08:33 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 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 * @addtogroup Interfaces | 56 * @addtogroup Interfaces |
57 * @{ | 57 * @{ |
58 */ | 58 */ |
59 /** | 59 /** |
60 * The <code>PPB_AudioConfig</code> interface contains pointers to several | 60 * The <code>PPB_AudioConfig</code> interface contains pointers to several |
61 * functions for establishing your audio configuration within the browser. | 61 * functions for establishing your audio configuration within the browser. |
62 * This interface only supports stereo * 16bit output. | 62 * This interface only supports stereo * 16bit output. |
63 * | 63 * |
64 * Refer to the | 64 * Refer to the |
65 * <a href="/chrome/nativeclient/docs/audio.html">Pepper | 65 * <a href="/chrome/nativeclient/docs/audio.html">Pepper |
66 * Audio API Code Walkthrough</a> for information on using this interface. | 66 * Audio API</a> for information on using this interface. |
67 */ | 67 */ |
68 #define PPB_AUDIO_CONFIG_INTERFACE_0_5 "PPB_AudioConfig;0.5" | 68 #define PPB_AUDIO_CONFIG_INTERFACE_0_5 "PPB_AudioConfig;0.5" |
69 #define PPB_AUDIO_CONFIG_INTERFACE_1_0 "PPB_AudioConfig;1.0" | 69 #define PPB_AUDIO_CONFIG_INTERFACE_1_0 "PPB_AudioConfig;1.0" |
70 #define PPB_AUDIO_CONFIG_INTERFACE PPB_AUDIO_CONFIG_INTERFACE_1_0 | 70 #define PPB_AUDIO_CONFIG_INTERFACE PPB_AUDIO_CONFIG_INTERFACE_1_0 |
71 | 71 |
72 struct PPB_AudioConfig { | 72 struct PPB_AudioConfig { |
73 /** | 73 /** |
74 * CreateStereo16bit() creates a 16 bit audio configuration resource. The | 74 * CreateStereo16bit() creates a 16 bit audio configuration resource. The |
75 * <code>sample_frame_count</code> should be the result of calling | 75 * <code>sample_frame_count</code> should be the result of calling |
76 * <code>RecommendSampleFrameCount</code>. If the sample frame count or bit | 76 * <code>RecommendSampleFrameCount</code>. If the sample frame count or bit |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 * for more on sample frame counts. | 163 * for more on sample frame counts. |
164 */ | 164 */ |
165 uint32_t (*GetSampleFrameCount)(PP_Resource config); | 165 uint32_t (*GetSampleFrameCount)(PP_Resource config); |
166 }; | 166 }; |
167 /** | 167 /** |
168 * @} | 168 * @} |
169 */ | 169 */ |
170 | 170 |
171 #endif /* PPAPI_C_PPB_AUDIO_CONFIG_H_ */ | 171 #endif /* PPAPI_C_PPB_AUDIO_CONFIG_H_ */ |
172 | 172 |
OLD | NEW |