Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: ppapi/c/dev/ppb_audio_input_dev.h

Issue 8662014: Pepper: Fix the definition of |PPB_AudioInput_Callback|. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/api/dev/ppb_audio_input_dev.idl ('k') | ppapi/proxy/resource_creation_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 Mon Nov 14 17:58:16 2011. */ 6 /* From dev/ppb_audio_input_dev.idl modified Wed Nov 23 09:26:09 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
17 #define PPB_AUDIO_INPUT_DEV_INTERFACE_0_1 "PPB_AudioInput(Dev);0.1" 17 #define PPB_AUDIO_INPUT_DEV_INTERFACE_0_1 "PPB_AudioInput(Dev);0.1"
18 #define PPB_AUDIO_INPUT_DEV_INTERFACE PPB_AUDIO_INPUT_DEV_INTERFACE_0_1 18 #define PPB_AUDIO_INPUT_DEV_INTERFACE PPB_AUDIO_INPUT_DEV_INTERFACE_0_1
19 19
20 /** 20 /**
21 * @file 21 * @file
22 * This file defines the <code>PPB_AudioInput_Dev</code> interface, which 22 * This file defines the <code>PPB_AudioInput_Dev</code> interface, which
23 * provides realtime audio input capture. 23 * provides realtime audio input capture.
24 */ 24 */
25 25
26 26
27 /** 27 /**
28 * @addtogroup Typedefs 28 * @addtogroup Typedefs
29 * @{ 29 * @{
30 */ 30 */
31 /** 31 /**
32 * <code>PPB_AudioInput_Callback</code> defines the type of an audio callback 32 * <code>PPB_AudioInput_Callback</code> defines the type of an audio callback
33 * function used to provide the audio buffer with data. This callback will be 33 * function used to provide the audio buffer with data. This callback will be
34 * called on a separate thread to the creation thread. 34 * called on a separate thread from the creation thread.
35 */ 35 */
36 typedef void (*PPB_AudioInput_Callback)(void* sample_buffer, 36 typedef void (*PPB_AudioInput_Callback)(const void* sample_buffer,
37 uint32_t buffer_size_in_bytes, 37 uint32_t buffer_size_in_bytes,
38 void* user_data); 38 void* user_data);
39 /** 39 /**
40 * @} 40 * @}
41 */ 41 */
42 42
43 /** 43 /**
44 * @addtogroup Interfaces 44 * @addtogroup Interfaces
45 * @{ 45 * @{
46 */ 46 */
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 /** 107 /**
108 * @} 108 * @}
109 */ 109 */
110 110
111 #endif /* PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ */ 111 #endif /* PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_ */
112 112
OLDNEW
« no previous file with comments | « ppapi/api/dev/ppb_audio_input_dev.idl ('k') | ppapi/proxy/resource_creation_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698