diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-17 22:55:30 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-17 22:55:30 +0000 |
commit | 0ac8fd43e07da4da1eb75eec56dfb60b6c8586f0 (patch) | |
tree | d357e1b4f686e703069da6fc98a3d56ec61c61a2 /ppapi/proxy/resource_creation_proxy.h | |
parent | f21cf6a82c8f4641a93618b60d107369c92fc0ae (diff) | |
download | chromium_src-0ac8fd43e07da4da1eb75eec56dfb60b6c8586f0.zip chromium_src-0ac8fd43e07da4da1eb75eec56dfb60b6c8586f0.tar.gz chromium_src-0ac8fd43e07da4da1eb75eec56dfb60b6c8586f0.tar.bz2 |
Microphone support for Pepper Flash.
[Committing for pbrophy@adobe.com. Original review:
http://codereview.chromium.org/8138008/ .]
This change supports audio capture from the microphone and supplies the data
through a Pepper interface. Its enumeration is limited to the default audio
device that uses mono 44.1kHz.
TBR=tony@chromium.org
Review URL: http://codereview.chromium.org/8574029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/resource_creation_proxy.h')
-rw-r--r-- | ppapi/proxy/resource_creation_proxy.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ppapi/proxy/resource_creation_proxy.h b/ppapi/proxy/resource_creation_proxy.h index 20924d1..e543722 100644 --- a/ppapi/proxy/resource_creation_proxy.h +++ b/ppapi/proxy/resource_creation_proxy.h @@ -46,6 +46,12 @@ class ResourceCreationProxy : public InterfaceProxy, PP_AudioSampleRate sample_rate, uint32_t sample_frame_count) OVERRIDE; virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; + virtual PP_Resource CreateAudioInput( + PP_Instance instance, + PP_Resource config_id, + PPB_AudioInput_Callback audio_input_callback, + void* user_data) OVERRIDE; + virtual PP_Resource CreateAudioInputTrusted(PP_Instance instance) OVERRIDE; virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; virtual PP_Resource CreateBuffer(PP_Instance instance, uint32_t size) OVERRIDE; @@ -140,6 +146,8 @@ class ResourceCreationProxy : public InterfaceProxy, int32_t sample_rate, uint32_t sample_frame_count, HostResource* result); + void OnMsgCreateAudioInput(PP_Instance instance, + HostResource* result); void OnMsgCreateGraphics2D(PP_Instance instance, const PP_Size& size, PP_Bool is_always_opaque, |