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

Unified Diff: ppapi/c/ppb_audio_frame.h

Issue 140783004: [PPAPI] Pepper MediaStream API audio track implementation and example. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-upload the patchset 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/c/ppb_audio_frame.h
diff --git a/ppapi/c/ppb_audio_frame.h b/ppapi/c/ppb_audio_frame.h
index 3f2b2a34ebf10a286d0c3b91982f32f803ff8219..e17a964f34eb32588a761033370bdddb39be1e47 100644
--- a/ppapi/c/ppb_audio_frame.h
+++ b/ppapi/c/ppb_audio_frame.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From ppb_audio_frame.idl modified Thu Jan 9 14:39:24 2014. */
+/* From ppb_audio_frame.idl modified Thu Jan 16 15:39:03 2014. */
#ifndef PPAPI_C_PPB_AUDIO_FRAME_H_
#define PPAPI_C_PPB_AUDIO_FRAME_H_
@@ -13,6 +13,7 @@
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_time.h"
+#include "ppapi/c/ppb_audio_config.h"
#define PPB_AUDIOFRAME_INTERFACE_0_1 "PPB_AudioFrame;0.1" /* dev */
/**
@@ -56,6 +57,15 @@ struct PPB_AudioFrame_0_1 { /* dev */
*/
void (*SetTimestamp)(PP_Resource frame, 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.
+ */
+ PP_AudioSampleRate (*GetSampleRate)(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