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