OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # This file declares the RPC methods used to implement PPB_Audio |
| 6 # calls from the plugin. The functions are described in |
| 7 # ppapi/c/ppb_audio.h. |
| 8 { |
| 9 'name': 'PpbAudioRpc', |
| 10 'rpcs': [ |
| 11 # Implements a call to create an audio resource. |
| 12 # Returns descriptors for memory window, sync socket. |
| 13 {'name': 'PPB_Audio_Create', |
| 14 'inputs': [['instance', 'PP_Instance'], |
| 15 ['config', 'PP_Resource'], |
| 16 ], |
| 17 'outputs': [['out_resource', 'PP_Resource'], |
| 18 ] |
| 19 }, |
| 20 # Implements a call to determine IsAudio. |
| 21 {'name': 'PPB_Audio_IsAudio', |
| 22 'inputs': [['resource', 'PP_Resource'], |
| 23 ], |
| 24 'outputs': [['out_bool', 'int32_t'], |
| 25 ] |
| 26 }, |
| 27 # Implements a call to get current config as resource. |
| 28 {'name': 'PPB_Audio_GetCurrentConfig', |
| 29 'inputs': [['resource', 'PP_Resource'], |
| 30 ], |
| 31 'outputs': [['out_resource', 'PP_Resource'], |
| 32 ] |
| 33 }, |
| 34 # Implements a call to stop playback. |
| 35 {'name': 'PPB_Audio_StopPlayback', |
| 36 'inputs': [['resource', 'PP_Resource'], |
| 37 ], |
| 38 'outputs': [['out_bool', 'int32_t'], |
| 39 ] |
| 40 }, |
| 41 # Implements a call to start playback. |
| 42 {'name': 'PPB_Audio_StartPlayback', |
| 43 'inputs': [['resource', 'PP_Resource'], |
| 44 ], |
| 45 'outputs': [['out_bool', 'int32_t'], |
| 46 ] |
| 47 }, |
| 48 ] |
| 49 } |
OLD | NEW |