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

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

Issue 290993005: Support configuring number of audio buffers in MediaStream Pepper API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix uninitialized variable Created 6 years, 6 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
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 /** 6 /**
7 * Defines the <code>PPB_MediaStreamAudioTrack</code> interface. Used for 7 * Defines the <code>PPB_MediaStreamAudioTrack</code> interface. Used for
8 * receiving audio samples from a MediaStream audio track in the browser. 8 * receiving audio samples from a MediaStream audio track in the browser.
9 */ 9 */
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 PP_Bool IsMediaStreamAudioTrack([in] PP_Resource resource); 76 PP_Bool IsMediaStreamAudioTrack([in] PP_Resource resource);
77 77
78 /** 78 /**
79 * Configures underlying buffers for incoming audio samples. 79 * Configures underlying buffers for incoming audio samples.
80 * If the application doesn't want to drop samples, then the 80 * If the application doesn't want to drop samples, then the
81 * <code>PP_MEDIASTREAMAUDIOTRACK_ATTRIB_BUFFERS</code> should be 81 * <code>PP_MEDIASTREAMAUDIOTRACK_ATTRIB_BUFFERS</code> should be
82 * chosen such that inter-buffer processing time variability won't overrun all 82 * chosen such that inter-buffer processing time variability won't overrun all
83 * the input buffers. If all buffers are filled, then samples will be 83 * the input buffers. If all buffers are filled, then samples will be
84 * dropped. The application can detect this by examining the timestamp on 84 * dropped. The application can detect this by examining the timestamp on
85 * returned buffers. If <code>Configure()</code> is not called, default 85 * returned buffers. If <code>Configure()</code> is not called, default
86 * settings will be used. 86 * settings will be used. Calls to Configure while the plugin holds
87 * buffers will fail.
87 * Example usage from plugin code: 88 * Example usage from plugin code:
88 * @code 89 * @code
89 * int32_t attribs[] = { 90 * int32_t attribs[] = {
90 * PP_MEDIASTREAMAUDIOTRACK_ATTRIB_BUFFERS, 4, 91 * PP_MEDIASTREAMAUDIOTRACK_ATTRIB_BUFFERS, 4,
91 * PP_MEDIASTREAMAUDIOTRACK_ATTRIB_DURATION, 10, 92 * PP_MEDIASTREAMAUDIOTRACK_ATTRIB_DURATION, 10,
92 * PP_MEDIASTREAMAUDIOTRACK_ATTRIB_NONE}; 93 * PP_MEDIASTREAMAUDIOTRACK_ATTRIB_NONE};
93 * track_if->Configure(track, attribs, callback); 94 * track_if->Configure(track, attribs, callback);
94 * @endcode 95 * @endcode
95 * 96 *
96 * @param[in] audio_track A <code>PP_Resource</code> corresponding to an audio 97 * @param[in] audio_track A <code>PP_Resource</code> corresponding to an audio
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 * Closes the MediaStream audio track and disconnects it from the audio 192 * Closes the MediaStream audio track and disconnects it from the audio
192 * source. After calling <code>Close()</code>, no new buffers will be 193 * source. After calling <code>Close()</code>, no new buffers will be
193 * received. 194 * received.
194 * 195 *
195 * @param[in] audio_track A <code>PP_Resource</code> corresponding to a 196 * @param[in] audio_track A <code>PP_Resource</code> corresponding to a
196 * MediaStream audio track resource. 197 * MediaStream audio track resource.
197 */ 198 */
198 void Close([in] PP_Resource audio_track); 199 void Close([in] PP_Resource audio_track);
199 }; 200 };
200 201
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_media_stream_track_host_base.cc ('k') | ppapi/c/ppb_media_stream_audio_track.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698