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

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: Fix build error 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
Index: ppapi/c/ppb_audio_frame.h
diff --git a/ppapi/c/ppb_audio_frame.h b/ppapi/c/ppb_audio_frame.h
index 095a3ab4823462d683cda94b12ce2653502ab293..03265c48973a342163c0c44cc3ffef38083668d5 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 Wed Jan 22 21:25:31 2014. */
+/* From ppb_audio_frame.idl modified Wed Jan 29 13:24:24 2014. */
#ifndef PPAPI_C_PPB_AUDIO_FRAME_H_
#define PPAPI_C_PPB_AUDIO_FRAME_H_
@@ -31,6 +31,7 @@
*/
typedef enum {
PP_AUDIOFRAME_SAMPLERATE_UNKNOWN = 0,
+ PP_AUDIOFRAME_SAMPLERATE_8000 = 8000,
PP_AUDIOFRAME_SAMPLERATE_44100 = 44100
} PP_AudioFrame_SampleRate;
@@ -81,6 +82,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_AudioFrame_SampleRate (*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