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

Unified Diff: ppapi/api/ppb_audio_frame.idl

Issue 140783004: [PPAPI] Pepper MediaStream API audio track implementation and example. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix review issues Created 6 years, 10 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_converter.cc ('k') | ppapi/c/ppb_audio_frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/ppb_audio_frame.idl
diff --git a/ppapi/api/ppb_audio_frame.idl b/ppapi/api/ppb_audio_frame.idl
index 660071690171dd9ed7e8e1c429ae73b862e18cf4..bb4d4b897fac2b813681d089de0888b38b0bf4b2 100644
--- a/ppapi/api/ppb_audio_frame.idl
+++ b/ppapi/api/ppb_audio_frame.idl
@@ -19,6 +19,7 @@ label Chrome {
*/
enum PP_AudioFrame_SampleRate {
PP_AUDIOFRAME_SAMPLERATE_UNKNOWN = 0,
+ PP_AUDIOFRAME_SAMPLERATE_8000 = 8000,
PP_AUDIOFRAME_SAMPLERATE_44100 = 44100
};
@@ -66,6 +67,17 @@ interface PPB_AudioFrame {
void SetTimestamp([in] PP_Resource frame, [in] PP_TimeDelta timestamp);
/**
+ * Gets the sample rate of the audio frame.
+ *
+ * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
+ * resource.
+ *
+ * @return The sample rate of the audio frame.
+ */
+ [on_failure=PP_AUDIOFRAME_SAMPLERATE_UNKNOWN]
+ PP_AudioFrame_SampleRate GetSampleRate([in] PP_Resource frame);
+
+ /**
* Gets the sample size of the audio frame.
*
* @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
« no previous file with comments | « content/renderer/pepper/resource_converter.cc ('k') | ppapi/c/ppb_audio_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698