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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.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_server.cc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.cc (revision 122585)
+++ ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.cc (working copy)
@@ -169,6 +169,21 @@
);
}
+static void PPB_AudioConfig_RecommendSampleFrameCount_1_0Dispatcher(
+ NaClSrpcRpc* rpc,
+ NaClSrpcArg** inputs,
+ NaClSrpcArg** outputs,
+ NaClSrpcClosure* done
+) {
+ PpbAudioConfigRpcServer::PPB_AudioConfig_RecommendSampleFrameCount_1_0(
+ rpc,
+ done,
+ inputs[0]->u.ival,
+ inputs[1]->u.ival,
+ &(outputs[0]->u.ival)
+ );
+}
+
static void PPB_AudioConfig_RecommendSampleFrameCountDispatcher(
NaClSrpcRpc* rpc,
NaClSrpcArg** inputs,
@@ -180,6 +195,7 @@
done,
inputs[0]->u.ival,
inputs[1]->u.ival,
+ inputs[2]->u.ival,
&(outputs[0]->u.ival)
);
}
@@ -212,6 +228,20 @@
);
}
+static void PPB_AudioConfig_RecommendSampleRateDispatcher(
+ NaClSrpcRpc* rpc,
+ NaClSrpcArg** inputs,
+ NaClSrpcArg** outputs,
+ NaClSrpcClosure* done
+) {
+ PpbAudioConfigRpcServer::PPB_AudioConfig_RecommendSampleRate(
+ rpc,
+ done,
+ inputs[0]->u.ival,
+ &(outputs[0]->u.ival)
+ );
+}
+
static void PPB_Core_AddRefResourceDispatcher(
NaClSrpcRpc* rpc,
NaClSrpcArg** inputs,
@@ -2922,9 +2952,11 @@
{ "PPB_Audio_StartPlayback:i:i", PPB_Audio_StartPlaybackDispatcher },
{ "PPB_AudioConfig_CreateStereo16Bit:iii:i", PPB_AudioConfig_CreateStereo16BitDispatcher },
{ "PPB_AudioConfig_IsAudioConfig:i:i", PPB_AudioConfig_IsAudioConfigDispatcher },
- { "PPB_AudioConfig_RecommendSampleFrameCount:ii:i", PPB_AudioConfig_RecommendSampleFrameCountDispatcher },
+ { "PPB_AudioConfig_RecommendSampleFrameCount_1_0:ii:i", PPB_AudioConfig_RecommendSampleFrameCount_1_0Dispatcher },
+ { "PPB_AudioConfig_RecommendSampleFrameCount:iii:i", PPB_AudioConfig_RecommendSampleFrameCountDispatcher },
{ "PPB_AudioConfig_GetSampleRate:i:i", PPB_AudioConfig_GetSampleRateDispatcher },
{ "PPB_AudioConfig_GetSampleFrameCount:i:i", PPB_AudioConfig_GetSampleFrameCountDispatcher },
+ { "PPB_AudioConfig_RecommendSampleRate:i:i", PPB_AudioConfig_RecommendSampleRateDispatcher },
{ "PPB_Core_AddRefResource:i:", PPB_Core_AddRefResourceDispatcher },
{ "PPB_Core_ReleaseResource:i:", PPB_Core_ReleaseResourceDispatcher },
{ "ReleaseResourceMultipleTimes:ii:", ReleaseResourceMultipleTimesDispatcher },

Powered by Google App Engine
This is Rietveld 408576698