Index: ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc |
=================================================================== |
--- ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc (revision 122585) |
+++ ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc (working copy) |
@@ -201,8 +201,28 @@ |
return retval; |
} |
+NaClSrpcError PpbAudioConfigRpcClient::PPB_AudioConfig_RecommendSampleFrameCount_1_0( |
+ NaClSrpcChannel* channel, |
+ int32_t request_sample_rate, |
+ int32_t request_sample_frame_count, |
+ int32_t* out_sample_frame_count) { |
+ VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), |
+ ("%s: PPAPI calls are not supported off the main thread\n", |
+ __FUNCTION__)); |
+ NaClSrpcError retval; |
+ retval = NaClSrpcInvokeBySignature( |
+ channel, |
+ "PPB_AudioConfig_RecommendSampleFrameCount_1_0:ii:i", |
+ request_sample_rate, |
+ request_sample_frame_count, |
+ out_sample_frame_count |
+ ); |
+ return retval; |
+} |
+ |
NaClSrpcError PpbAudioConfigRpcClient::PPB_AudioConfig_RecommendSampleFrameCount( |
NaClSrpcChannel* channel, |
+ PP_Instance instance, |
int32_t request_sample_rate, |
int32_t request_sample_frame_count, |
int32_t* out_sample_frame_count) { |
@@ -212,7 +232,8 @@ |
NaClSrpcError retval; |
retval = NaClSrpcInvokeBySignature( |
channel, |
- "PPB_AudioConfig_RecommendSampleFrameCount:ii:i", |
+ "PPB_AudioConfig_RecommendSampleFrameCount:iii:i", |
+ instance, |
request_sample_rate, |
request_sample_frame_count, |
out_sample_frame_count |
@@ -254,6 +275,23 @@ |
return retval; |
} |
+NaClSrpcError PpbAudioConfigRpcClient::PPB_AudioConfig_RecommendSampleRate( |
+ NaClSrpcChannel* channel, |
+ PP_Instance instance, |
+ int32_t* sample_rate) { |
+ VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), |
+ ("%s: PPAPI calls are not supported off the main thread\n", |
+ __FUNCTION__)); |
+ NaClSrpcError retval; |
+ retval = NaClSrpcInvokeBySignature( |
+ channel, |
+ "PPB_AudioConfig_RecommendSampleRate:i:i", |
+ instance, |
+ sample_rate |
+ ); |
+ return retval; |
+} |
+ |
NaClSrpcError PpbCoreRpcClient::PPB_Core_AddRefResource( |
NaClSrpcChannel* channel, |
PP_Resource resource) { |