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

Unified Diff: ppapi/cpp/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: Update 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/cpp/audio_frame.h
diff --git a/ppapi/cpp/audio_frame.h b/ppapi/cpp/audio_frame.h
index 32d55956e67616d0f627799392e98f63f5e15c10..485d814dec0d2654a73bc6b544f0a7b5f16fca6d 100644
--- a/ppapi/cpp/audio_frame.h
+++ b/ppapi/cpp/audio_frame.h
@@ -47,10 +47,15 @@ class AudioFrame : public Resource {
/// audio stream.
void SetTimestamp(PP_TimeDelta timestamp);
+ /// Gets the sample rate of the audio frame.
+ ///
+ /// @return The sample rate of the audio frame.
+ PP_AudioFrame_SampleRate GetSampleRate() const;
+
/// Gets the sample size of the audio frame in bytes.
///
/// @return The sample size of the audio frame in bytes.
- uint32_t GetSampleSize() const;
+ PP_AudioFrame_SampleSize GetSampleSize() const;
/// Gets the number of channels in the audio frame.
///

Powered by Google App Engine
This is Rietveld 408576698