diff options
author | penghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-23 22:03:13 +0000 |
---|---|---|
committer | penghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-23 22:03:13 +0000 |
commit | 8c7747f02380085d196b7c844ebf65f1092fafdf (patch) | |
tree | d6221e58ce1898ef101fdce23b988cf1ca68050a /ppapi/api/ppb_audio_frame.idl | |
parent | bad74669cd0485f8b7503cabdb5001ede7f113dd (diff) | |
download | chromium_src-8c7747f02380085d196b7c844ebf65f1092fafdf.zip chromium_src-8c7747f02380085d196b7c844ebf65f1092fafdf.tar.gz chromium_src-8c7747f02380085d196b7c844ebf65f1092fafdf.tar.bz2 |
[PPAPI] Refine Configure() for Pepper MediaStream API.
BUG=330851
Review URL: https://codereview.chromium.org/141993002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246697 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api/ppb_audio_frame.idl')
-rw-r--r-- | ppapi/api/ppb_audio_frame.idl | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/ppapi/api/ppb_audio_frame.idl b/ppapi/api/ppb_audio_frame.idl index b0c14d4..6600716 100644 --- a/ppapi/api/ppb_audio_frame.idl +++ b/ppapi/api/ppb_audio_frame.idl @@ -13,6 +13,24 @@ label Chrome { [channel=dev] M34 = 0.1 }; +/** + * PP_AudioFrame_SampleRate is an enumeration of the different audio sample + * rates. + */ +enum PP_AudioFrame_SampleRate { + PP_AUDIOFRAME_SAMPLERATE_UNKNOWN = 0, + PP_AUDIOFRAME_SAMPLERATE_44100 = 44100 +}; + +/** + * PP_AudioFrame_SampleSize is an enumeration of the different audio sample + * sizes. + */ +enum PP_AudioFrame_SampleSize { + PP_AUDIOFRAME_SAMPLESIZE_UNKNOWN = 0, + PP_AUDIOFRAME_SAMPLESIZE_16_BITS = 2 +}; + interface PPB_AudioFrame { /** * Determines if a resource is an AudioFrame resource. @@ -55,7 +73,8 @@ interface PPB_AudioFrame { * * @return The sample size of the audio frame. */ - uint32_t GetSampleSize([in] PP_Resource frame); + [on_failure=PP_AUDIOFRAME_SAMPLESIZE_UNKNOWN] + PP_AudioFrame_SampleSize GetSampleSize([in] PP_Resource frame); /** * Gets the number of channels in the audio frame. |