| 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 dev/ppb_audio_input_dev.idl modified Wed Nov 23 09:26:09 2011. */ | 6 /* From dev/ppb_audio_input_dev.idl modified Mon Nov 28 22:30:37 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_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 24 matching lines...) Expand all Loading... |
| 41 */ | 41 */ |
| 42 | 42 |
| 43 /** | 43 /** |
| 44 * @addtogroup Interfaces | 44 * @addtogroup Interfaces |
| 45 * @{ | 45 * @{ |
| 46 */ | 46 */ |
| 47 /** | 47 /** |
| 48 * The <code>PPB_AudioInput_Dev</code> interface contains pointers to several | 48 * The <code>PPB_AudioInput_Dev</code> interface contains pointers to several |
| 49 * functions for handling audio input resources. | 49 * functions for handling audio input resources. |
| 50 */ | 50 */ |
| 51 struct PPB_AudioInput_Dev { | 51 struct PPB_AudioInput_Dev_0_1 { |
| 52 /** | 52 /** |
| 53 * Create is a pointer to a function that creates an audio input resource. | 53 * Create is a pointer to a function that creates an audio input resource. |
| 54 * No sound will be captured until StartCapture() is called. | 54 * No sound will be captured until StartCapture() is called. |
| 55 */ | 55 */ |
| 56 PP_Resource (*Create)(PP_Instance instance, | 56 PP_Resource (*Create)(PP_Instance instance, |
| 57 PP_Resource config, | 57 PP_Resource config, |
| 58 PPB_AudioInput_Callback audio_input_callback, | 58 PPB_AudioInput_Callback audio_input_callback, |
| 59 void* user_data); | 59 void* user_data); |
| 60 /** | 60 /** |
| 61 * IsAudioInput is a pointer to a function that determines if the given | 61 * IsAudioInput is a pointer to a function that determines if the given |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 * | 97 * |
| 98 * @param[in] config A PP_Resource containing the audio input resource. | 98 * @param[in] config A PP_Resource containing the audio input resource. |
| 99 * | 99 * |
| 100 * @return A PP_BOOL containing PP_TRUE if successful, otherwise PP_FALSE. | 100 * @return A PP_BOOL containing PP_TRUE if successful, otherwise PP_FALSE. |
| 101 * Also returns PP_TRUE (and is a no-op) if called while capture is already | 101 * Also returns PP_TRUE (and is a no-op) if called while capture is already |
| 102 * stopped. If a buffer is being captured, StopCapture will block until the | 102 * stopped. If a buffer is being captured, StopCapture will block until the |
| 103 * call completes. | 103 * call completes. |
| 104 */ | 104 */ |
| 105 PP_Bool (*StopCapture)(PP_Resource audio_input); | 105 PP_Bool (*StopCapture)(PP_Resource audio_input); |
| 106 }; | 106 }; |
| 107 |
| 108 typedef struct PPB_AudioInput_Dev_0_1 PPB_AudioInput_Dev; |
| 107 /** | 109 /** |
| 108 * @} | 110 * @} |
| 109 */ | 111 */ |
| 110 | 112 |
| 111 #endif /* PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ */ | 113 #endif /* PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ */ |
| 112 | 114 |
| OLD | NEW |