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

Side by Side Diff: ppapi/c/ppb_media_stream_audio_track.h

Issue 212023003: PPAPI: Bring PPB_MediaStream*Track to stable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 9 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 | « ppapi/c/ppb_audio_buffer.h ('k') | ppapi/c/ppb_media_stream_video_track.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 2014 The Chromium Authors. All rights reserved. 1 /* Copyright 2014 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 ppb_media_stream_audio_track.idl modified Fri Feb 7 14:38:28 2014. */ 6 /* From ppb_media_stream_audio_track.idl modified Fri Mar 28 10:13:34 2014. */
7 7
8 #ifndef PPAPI_C_PPB_MEDIA_STREAM_AUDIO_TRACK_H_ 8 #ifndef PPAPI_C_PPB_MEDIA_STREAM_AUDIO_TRACK_H_
9 #define PPAPI_C_PPB_MEDIA_STREAM_AUDIO_TRACK_H_ 9 #define PPAPI_C_PPB_MEDIA_STREAM_AUDIO_TRACK_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h" 12 #include "ppapi/c/pp_completion_callback.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 #include "ppapi/c/pp_var.h" 16 #include "ppapi/c/pp_var.h"
17 17
18 #define PPB_MEDIASTREAMAUDIOTRACK_INTERFACE_0_1 \ 18 #define PPB_MEDIASTREAMAUDIOTRACK_INTERFACE_0_1 "PPB_MediaStreamAudioTrack;0.1"
19 "PPB_MediaStreamAudioTrack;0.1" /* dev */ 19 #define PPB_MEDIASTREAMAUDIOTRACK_INTERFACE \
20 PPB_MEDIASTREAMAUDIOTRACK_INTERFACE_0_1
21
20 /** 22 /**
21 * @file 23 * @file
22 * Defines the <code>PPB_MediaStreamAudioTrack</code> interface. Used for 24 * Defines the <code>PPB_MediaStreamAudioTrack</code> interface. Used for
23 * receiving audio samples from a MediaStream audio track in the browser. 25 * receiving audio samples from a MediaStream audio track in the browser.
24 * This interface is still in development (Dev API status) and may change.
25 */ 26 */
26 27
27 28
28 /** 29 /**
29 * @addtogroup Enums 30 * @addtogroup Enums
30 * @{ 31 * @{
31 */ 32 */
32 /** 33 /**
33 * This enumeration contains audio track attributes which are used by 34 * This enumeration contains audio track attributes which are used by
34 * <code>Configure()</code>. 35 * <code>Configure()</code>.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 PP_MEDIASTREAMAUDIOTRACK_ATTRIB_DURATION = 5 72 PP_MEDIASTREAMAUDIOTRACK_ATTRIB_DURATION = 5
72 } PP_MediaStreamAudioTrack_Attrib; 73 } PP_MediaStreamAudioTrack_Attrib;
73 /** 74 /**
74 * @} 75 * @}
75 */ 76 */
76 77
77 /** 78 /**
78 * @addtogroup Interfaces 79 * @addtogroup Interfaces
79 * @{ 80 * @{
80 */ 81 */
81 struct PPB_MediaStreamAudioTrack_0_1 { /* dev */ 82 struct PPB_MediaStreamAudioTrack_0_1 {
82 /** 83 /**
83 * Determines if a resource is a MediaStream audio track resource. 84 * Determines if a resource is a MediaStream audio track resource.
84 * 85 *
85 * @param[in] resource The <code>PP_Resource</code> to test. 86 * @param[in] resource The <code>PP_Resource</code> to test.
86 * 87 *
87 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given 88 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given
88 * resource is a Mediastream audio track resource or <code>PP_FALSE</code> 89 * resource is a Mediastream audio track resource or <code>PP_FALSE</code>
89 * otherwise. 90 * otherwise.
90 */ 91 */
91 PP_Bool (*IsMediaStreamAudioTrack)(PP_Resource resource); 92 PP_Bool (*IsMediaStreamAudioTrack)(PP_Resource resource);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 /** 197 /**
197 * Closes the MediaStream audio track and disconnects it from the audio 198 * Closes the MediaStream audio track and disconnects it from the audio
198 * source. After calling <code>Close()</code>, no new buffers will be 199 * source. After calling <code>Close()</code>, no new buffers will be
199 * received. 200 * received.
200 * 201 *
201 * @param[in] audio_track A <code>PP_Resource</code> corresponding to a 202 * @param[in] audio_track A <code>PP_Resource</code> corresponding to a
202 * MediaStream audio track resource. 203 * MediaStream audio track resource.
203 */ 204 */
204 void (*Close)(PP_Resource audio_track); 205 void (*Close)(PP_Resource audio_track);
205 }; 206 };
207
208 typedef struct PPB_MediaStreamAudioTrack_0_1 PPB_MediaStreamAudioTrack;
206 /** 209 /**
207 * @} 210 * @}
208 */ 211 */
209 212
210 #endif /* PPAPI_C_PPB_MEDIA_STREAM_AUDIO_TRACK_H_ */ 213 #endif /* PPAPI_C_PPB_MEDIA_STREAM_AUDIO_TRACK_H_ */
211 214
OLDNEW
« no previous file with comments | « ppapi/c/ppb_audio_buffer.h ('k') | ppapi/c/ppb_media_stream_video_track.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698