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

Side by Side Diff: ppapi/api/ppb_audio.idl

Issue 7664012: Changed "Pepper Audio API Code Walkthrough" to "Pepper Audio API" as per Andy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months 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/api/ppb_audio_config.idl » ('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_Audio</code> interface, which provides 7 * This file defines the <code>PPB_Audio</code> interface, which provides
8 * realtime stereo audio streaming capabilities. 8 * realtime stereo audio streaming capabilities.
9 */ 9 */
10 10
11 label Chrome { 11 label Chrome {
12 M13 = 0.6, 12 M13 = 0.6,
13 M14 = 1.0 13 M14 = 1.0
14 }; 14 };
15 15
16 /** 16 /**
17 * <code>PPB_Audio_Callback</code> defines the type of an audio callback 17 * <code>PPB_Audio_Callback</code> defines the type of an audio callback
18 * function used to fill the audio buffer with data. Please see the 18 * function used to fill the audio buffer with data. Please see the
19 * <code>Create()</code> function in the <code>PPB_Audio</code> interface for 19 * <code>Create()</code> function in the <code>PPB_Audio</code> interface for
20 * more details on this callback. 20 * more details on this callback.
21 */ 21 */
22 typedef void PPB_Audio_Callback([out] mem_t sample_buffer, 22 typedef void PPB_Audio_Callback([out] mem_t sample_buffer,
23 [in] uint32_t buffer_size_in_bytes, 23 [in] uint32_t buffer_size_in_bytes,
24 [inout] mem_t user_data); 24 [inout] mem_t user_data);
25 25
26 /** 26 /**
27 * The <code>PPB_Audio</code> interface contains pointers to several functions 27 * The <code>PPB_Audio</code> interface contains pointers to several functions
28 * for handling audio resources. Please refer to the 28 * for handling audio resources. Please refer to the
29 * <a href="/chrome/nativeclient/docs/audio.html">Pepper 29 * <a href="/chrome/nativeclient/docs/audio.html">Pepper
30 * Audio API Code Walkthrough</a> for information on using this interface. 30 * Audio API</a> for information on using this interface.
31 * Please see descriptions for each <code>PPB_Audio</code> and 31 * Please see descriptions for each <code>PPB_Audio</code> and
32 * <code>PPB_AudioConfig</code> function for more details. 32 * <code>PPB_AudioConfig</code> function for more details.
33 * 33 *
34 * A C example using PPB_Audio and PPB_AudioConfig: 34 * A C example using PPB_Audio and PPB_AudioConfig:
35 * @code 35 * @code
36 * void audio_callback(void* sample_buffer, 36 * void audio_callback(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 * ... quickly fill in the buffer with samples and return to caller ... 39 * ... quickly fill in the buffer with samples and return to caller ...
40 * } 40 * }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 * 125 *
126 * @return A PP_BOOL containing PP_TRUE if successful, otherwise PP_FALSE. 126 * @return A PP_BOOL containing PP_TRUE if successful, otherwise PP_FALSE.
127 * Also returns PP_TRUE (and is a no-op) if called while playback is already 127 * Also returns PP_TRUE (and is a no-op) if called while playback is already
128 * stopped. If a callback is in progress, StopPlayback will block until the 128 * stopped. If a callback is in progress, StopPlayback will block until the
129 * callback completes. 129 * callback completes.
130 */ 130 */
131 PP_Bool StopPlayback( 131 PP_Bool StopPlayback(
132 [in] PP_Resource audio); 132 [in] PP_Resource audio);
133 }; 133 };
134 134
OLDNEW
« no previous file with comments | « no previous file | ppapi/api/ppb_audio_config.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698