Index: ppapi/proxy/ppapi_messages.h |
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h |
index 2308a156feab279f27c523045673f3a61a822345..3de6bf72c1f385ac29d35bc0f6c179e6b00f23bd 100644 |
--- a/ppapi/proxy/ppapi_messages.h |
+++ b/ppapi/proxy/ppapi_messages.h |
@@ -131,6 +131,7 @@ IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) |
IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) |
+IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX) |
IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) |
IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
@@ -444,6 +445,14 @@ IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) |
IPC_STRUCT_TRAITS_MEMBER(switch_values) |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_TRAITS_BEGIN(PP_AudioProfileDescription) |
+IPC_STRUCT_TRAITS_MEMBER(profile) |
+IPC_STRUCT_TRAITS_MEMBER(max_channels) |
+IPC_STRUCT_TRAITS_MEMBER(sample_size) |
+IPC_STRUCT_TRAITS_MEMBER(sample_rate) |
+IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated) |
+IPC_STRUCT_TRAITS_END() |
+ |
IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription) |
IPC_STRUCT_TRAITS_MEMBER(profile) |
IPC_STRUCT_TRAITS_MEMBER(max_resolution) |
@@ -452,6 +461,15 @@ IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) |
IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated) |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPB_AudioEncodeParameters) |
+IPC_STRUCT_TRAITS_MEMBER(channels) |
+IPC_STRUCT_TRAITS_MEMBER(input_sample_rate) |
+IPC_STRUCT_TRAITS_MEMBER(input_sample_size) |
+IPC_STRUCT_TRAITS_MEMBER(output_profile) |
+IPC_STRUCT_TRAITS_MEMBER(initial_bitrate) |
+IPC_STRUCT_TRAITS_MEMBER(acceleration) |
+IPC_STRUCT_TRAITS_END() |
+ |
#if !defined(OS_NACL) && !defined(NACL_WIN64) |
IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) |
@@ -892,6 +910,35 @@ IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, |
ppapi::HostResource /* audio_id */, |
bool /* play */) |
+// PPB_AudioEncoder |
+IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Create) |
+IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_GetSupportedProfiles) |
+IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_GetSupportedProfilesReply, |
+ std::vector<PP_AudioProfileDescription> /* results */) |
+IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Initialize, |
+ ppapi::proxy::PPB_AudioEncodeParameters /* parameters */) |
+IPC_MESSAGE_CONTROL3(PpapiPluginMsg_AudioEncoder_InitializeReply, |
+ uint32_t /* number_of_samples */, |
+ uint32_t /* buffer_count */, |
+ uint32_t /* buffer_size */) |
+IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_GetAudioFrames) |
+IPC_MESSAGE_CONTROL2(PpapiPluginMsg_AudioEncoder_GetAudioFramesReply, |
+ uint32_t /* frame_count */, |
+ uint32_t /* frame_length */) |
+IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Encode, uint32_t /* buffer_id */) |
+IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_EncodeReply, |
+ uint32_t /* buffer_id */) |
+IPC_MESSAGE_CONTROL2(PpapiPluginMsg_AudioEncoder_BitstreamBufferReady, |
+ uint32_t /* buffer_id */, |
+ uint32_t /* buffer_size */) |
+IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RecycleBitstreamBuffer, |
+ uint32_t /* buffer_id */) |
+IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RequestBitrateChange, |
+ uint32_t /* bitrate */) |
+IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_NotifyError, |
+ int32_t /* error */) |
+IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Close) |
+ |
// PPB_Core. |
IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
ppapi::HostResource) |