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

Unified Diff: ppapi/api/ppb_audio.idl

Issue 22320004: Add a new parameter |latency| to PPB_Audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/pepper/resource_creation_impl.cc ('k') | ppapi/c/ppb_audio.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/ppb_audio.idl
diff --git a/ppapi/api/ppb_audio.idl b/ppapi/api/ppb_audio.idl
index 6d0dcb8d2b1f10d2b34208b6e43dc4c0c532db49..7a996badd0b5a91a83fadde3149f670a7876dc89 100644
--- a/ppapi/api/ppb_audio.idl
+++ b/ppapi/api/ppb_audio.idl
@@ -8,10 +8,9 @@
* realtime stereo audio streaming capabilities.
*/
-[generate_thunk]
-
label Chrome {
- M14 = 1.0
+ M14 = 1.0,
+ M31 = 1.1
};
/**
@@ -19,9 +18,16 @@ label Chrome {
* function used to fill the audio buffer with data. Please see the
* Create() function in the <code>PPB_Audio</code> interface for
* more details on this callback.
+ *
+ * @param[in] sample_buffer A buffer to fill with audio data.
+ * @param[in] buffer_size_in_bytes The size of the buffer in bytes.
+ * @param[in] latency How long before the audio data is to be presented.
+ * @param[inout] user_data An opaque pointer that was passed into
+ * <code>PPB_Audio.Create()</code>.
*/
typedef void PPB_Audio_Callback([out] mem_t sample_buffer,
[in] uint32_t buffer_size_in_bytes,
+ [in, version=1.1] PP_TimeDelta latency,
[inout] mem_t user_data);
/**
« no previous file with comments | « content/renderer/pepper/resource_creation_impl.cc ('k') | ppapi/c/ppb_audio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698