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

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: Update Created 6 years, 11 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
Index: ppapi/api/ppb_audio_frame.idl
diff --git a/ppapi/api/ppb_audio_frame.idl b/ppapi/api/ppb_audio_frame.idl
index b0c14d4df6adc864004a0f54c3b16b9896cf9656..cb434b8f21ac004030a6118457ddbea9172bf650 100644
--- a/ppapi/api/ppb_audio_frame.idl
+++ b/ppapi/api/ppb_audio_frame.idl
@@ -48,6 +48,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_AUDIOSAMPLERATE_NONE]
+ PP_AudioSampleRate 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

Powered by Google App Engine
This is Rietveld 408576698