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

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

Issue 10749006: Changed "Pepper Audio API" to "Audio chapter in the Developer's Guide..." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 M14 = 1.0 12 M14 = 1.0
13 }; 13 };
14 14
15 /** 15 /**
16 * <code>PPB_Audio_Callback</code> defines the type of an audio callback 16 * <code>PPB_Audio_Callback</code> defines the type of an audio callback
17 * function used to fill the audio buffer with data. Please see the 17 * function used to fill the audio buffer with data. Please see the
18 * Create() function in the <code>PPB_Audio</code> interface for 18 * Create() function in the <code>PPB_Audio</code> interface for
19 * more details on this callback. 19 * more details on this callback.
20 */ 20 */
21 typedef void PPB_Audio_Callback([out] mem_t sample_buffer, 21 typedef void PPB_Audio_Callback([out] mem_t sample_buffer,
22 [in] uint32_t buffer_size_in_bytes, 22 [in] uint32_t buffer_size_in_bytes,
23 [inout] mem_t user_data); 23 [inout] mem_t user_data);
24 24
25 /** 25 /**
26 * The <code>PPB_Audio</code> interface contains pointers to several functions 26 * The <code>PPB_Audio</code> interface contains pointers to several functions
27 * for handling audio resources. Please refer to the 27 * for handling audio resources. Refer to the
28 * <a href="/native-client/{{pepperversion}}/devguide/coding/audio">Pepper 28 * <a href="/native-client/{{pepperversion}}/devguide/coding/audio">Audio</a>
29 * Audio API</a> for information on using this interface. 29 * chapter in the Developer's Guide for information on using this interface.
30 * Please see descriptions for each <code>PPB_Audio</code> and 30 * Please see descriptions for each <code>PPB_Audio</code> and
31 * <code>PPB_AudioConfig</code> function for more details. A C example using 31 * <code>PPB_AudioConfig</code> function for more details. A C example using
32 * <code>PPB_Audio</code> and <code>PPB_AudioConfig</code> follows. 32 * <code>PPB_Audio</code> and <code>PPB_AudioConfig</code> follows.
33 * 33 *
34 * <strong>Example: </strong> 34 * <strong>Example: </strong>
35 * 35 *
36 * @code 36 * @code
37 * void audio_callback(void* sample_buffer, 37 * void audio_callback(void* sample_buffer,
38 * uint32_t buffer_size_in_bytes, 38 * uint32_t buffer_size_in_bytes,
39 * void* user_data) { 39 * void* user_data) {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if 136 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if
137 * successful, otherwise <code>PP_FALSE</code>. Also returns 137 * successful, otherwise <code>PP_FALSE</code>. Also returns
138 * <code>PP_TRUE</code> (and is a no-op) if called while playback is already 138 * <code>PP_TRUE</code> (and is a no-op) if called while playback is already
139 * stopped. If a callback is in progress, StopPlayback() will block until the 139 * stopped. If a callback is in progress, StopPlayback() will block until the
140 * callback completes. 140 * callback completes.
141 */ 141 */
142 PP_Bool StopPlayback( 142 PP_Bool StopPlayback(
143 [in] PP_Resource audio); 143 [in] PP_Resource audio);
144 }; 144 };
145 145
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