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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc

Issue 9129007: Work on improving PpbAudioConfig:RecommendSampleFrameCount (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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/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) {

Powered by Google App Engine
This is Rietveld 408576698