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

Side by Side Diff: ppapi/api/dev/ppb_audio_input_dev.idl

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 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 | « no previous file | ppapi/c/dev/ppb_audio_input_dev.h » ('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 /** 6 /**
7 * This file defines the <code>PPB_AudioInput_Dev</code> interface, which 7 * This file defines the <code>PPB_AudioInput_Dev</code> interface, which
8 * provides realtime audio input capture. 8 * provides realtime audio input capture.
9 */ 9 */
10 10
11 label Chrome { 11 label Chrome {
12 M17 = 0.1 12 M17 = 0.1
13 }; 13 };
14 14
15 /** 15 /**
16 * <code>PPB_AudioInput_Callback</code> defines the type of an audio callback 16 * <code>PPB_AudioInput_Callback</code> defines the type of an audio callback
17 * function used to provide the audio buffer with data. This callback will be 17 * function used to provide the audio buffer with data. This callback will be
18 * called on a separate thread to the creation thread. 18 * called on a separate thread from the creation thread.
19 */ 19 */
20 typedef void PPB_AudioInput_Callback([out] mem_t sample_buffer, 20 typedef void PPB_AudioInput_Callback([in] mem_t sample_buffer,
21 [in] uint32_t buffer_size_in_bytes, 21 [in] uint32_t buffer_size_in_bytes,
22 [inout] mem_t user_data); 22 [inout] mem_t user_data);
23 23
24 /** 24 /**
25 * The <code>PPB_AudioInput_Dev</code> interface contains pointers to several 25 * The <code>PPB_AudioInput_Dev</code> interface contains pointers to several
26 * functions for handling audio input resources. 26 * functions for handling audio input resources.
27 */ 27 */
28 [version=0.1, macro="PPB_AUDIO_INPUT_DEV_INTERFACE"] 28 [version=0.1, macro="PPB_AUDIO_INPUT_DEV_INTERFACE"]
29 interface PPB_AudioInput_Dev { 29 interface PPB_AudioInput_Dev {
30 /** 30 /**
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 * 85 *
86 * @return A PP_BOOL containing PP_TRUE if successful, otherwise PP_FALSE. 86 * @return A PP_BOOL containing PP_TRUE if successful, otherwise PP_FALSE.
87 * Also returns PP_TRUE (and is a no-op) if called while capture is already 87 * Also returns PP_TRUE (and is a no-op) if called while capture is already
88 * stopped. If a buffer is being captured, StopCapture will block until the 88 * stopped. If a buffer is being captured, StopCapture will block until the
89 * call completes. 89 * call completes.
90 */ 90 */
91 PP_Bool StopCapture( 91 PP_Bool StopCapture(
92 [in] PP_Resource audio_input); 92 [in] PP_Resource audio_input);
93 }; 93 };
94 94
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/dev/ppb_audio_input_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698