| 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.idl modified Thu Aug 11 14:14:47 2011. */ | 6 /* From ppb_audio.idl modified Tue Aug 16 10:08:09 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_AUDIO_H_ | 8 #ifndef PPAPI_C_PPB_AUDIO_H_ |
| 9 #define PPAPI_C_PPB_AUDIO_H_ | 9 #define PPAPI_C_PPB_AUDIO_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 22 matching lines...) Expand all Loading... |
| 39 */ | 39 */ |
| 40 | 40 |
| 41 /** | 41 /** |
| 42 * @addtogroup Interfaces | 42 * @addtogroup Interfaces |
| 43 * @{ | 43 * @{ |
| 44 */ | 44 */ |
| 45 /** | 45 /** |
| 46 * The <code>PPB_Audio</code> interface contains pointers to several functions | 46 * The <code>PPB_Audio</code> interface contains pointers to several functions |
| 47 * for handling audio resources. Please refer to the | 47 * for handling audio resources. Please refer to the |
| 48 * <a href="/chrome/nativeclient/docs/audio.html">Pepper | 48 * <a href="/chrome/nativeclient/docs/audio.html">Pepper |
| 49 * Audio API Code Walkthrough</a> for information on using this interface. | 49 * Audio API</a> for information on using this interface. |
| 50 * Please see descriptions for each <code>PPB_Audio</code> and | 50 * Please see descriptions for each <code>PPB_Audio</code> and |
| 51 * <code>PPB_AudioConfig</code> function for more details. | 51 * <code>PPB_AudioConfig</code> function for more details. |
| 52 * | 52 * |
| 53 * A C example using PPB_Audio and PPB_AudioConfig: | 53 * A C example using PPB_Audio and PPB_AudioConfig: |
| 54 * @code | 54 * @code |
| 55 * void audio_callback(void* sample_buffer, | 55 * void audio_callback(void* sample_buffer, |
| 56 * uint32_t buffer_size_in_bytes, | 56 * uint32_t buffer_size_in_bytes, |
| 57 * void* user_data) { | 57 * void* user_data) { |
| 58 * ... quickly fill in the buffer with samples and return to caller ... | 58 * ... quickly fill in the buffer with samples and return to caller ... |
| 59 * } | 59 * } |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 * callback completes. | 144 * callback completes. |
| 145 */ | 145 */ |
| 146 PP_Bool (*StopPlayback)(PP_Resource audio); | 146 PP_Bool (*StopPlayback)(PP_Resource audio); |
| 147 }; | 147 }; |
| 148 /** | 148 /** |
| 149 * @} | 149 * @} |
| 150 */ | 150 */ |
| 151 | 151 |
| 152 #endif /* PPAPI_C_PPB_AUDIO_H_ */ | 152 #endif /* PPAPI_C_PPB_AUDIO_H_ */ |
| 153 | 153 |
| OLD | NEW |