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_AudioConfig_Dev | 5 # This file declares the RPC methods used to implement PPB_AudioConfig_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_config_dev.h. | 7 # ppapi/c/dev/ppb_audio_config_dev.h. |
8 { | 8 { |
9 'name': 'PpbAudioConfigDevRpc', | 9 'name': 'PpbAudioConfigDevRpc', |
10 'rpcs': [ | 10 'rpcs': [ |
11 # Implements a call to create an audio configuration for stereo output . | 11 # Implements a call to create an audio configuration for stereo output . |
12 {'name': 'PPB_AudioConfig_Dev_CreateStereo16Bit', | 12 {'name': 'PPB_AudioConfig_Dev_CreateStereo16Bit', |
13 'inputs': [['module', 'int64_t'], | 13 'inputs': [['module', 'PP_Module'], |
14 ['sample_rate', 'int32_t'], | 14 ['sample_rate', 'int32_t'], |
15 ['sample_frame_count', 'int32_t'], | 15 ['sample_frame_count', 'int32_t'], |
16 ], | 16 ], |
17 'outputs': [['resource', 'int64_t'], | 17 'outputs': [['resource', 'PP_Resource'], |
18 ] | 18 ] |
19 }, | 19 }, |
20 # Implements a call to check if this is an AudioConfig. | 20 # Implements a call to check if this is an AudioConfig. |
21 {'name': 'PPB_AudioConfig_Dev_IsAudioConfig', | 21 {'name': 'PPB_AudioConfig_Dev_IsAudioConfig', |
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_config', 'PP_Bool']
| |
25 ] | 25 ] |
26 }, | 26 }, |
27 # Implements a call to get recommended sample frame count. | 27 # Implements a call to get recommended sample frame count. |
28 {'name': 'PPB_AudioConfig_Dev_RecommendSampleFrameCount', | 28 {'name': 'PPB_AudioConfig_Dev_RecommendSampleFrameCount', |
29 'inputs': [['request', 'int32_t'], | 29 'inputs': [['request', 'int32_t'], |
30 ], | 30 ], |
31 'outputs': [['sample_frame_count', 'int32_t'] | 31 'outputs': [['sample_frame_count', 'int32_t'] |
32 ] | 32 ] |
33 }, | 33 }, |
34 # Implements a call to get the sample rate. | 34 # Implements a call to get the sample rate. |
35 {'name': 'PPB_AudioConfig_Dev_GetSampleRate', | 35 {'name': 'PPB_AudioConfig_Dev_GetSampleRate', |
36 'inputs': [['resource', 'int64_t'], | 36 'inputs': [['resource', 'PP_Resource'], |
37 ], | 37 ], |
38 'outputs': [['sample_rate', 'int32_t'] | 38 'outputs': [['sample_rate', 'int32_t'] |
39 ] | 39 ] |
40 }, | 40 }, |
41 # Implements a call to get the obtained sample frame count. | 41 # Implements a call to get the obtained sample frame count. |
42 {'name': 'PPB_AudioConfig_Dev_GetSampleFrameCount', | 42 {'name': 'PPB_AudioConfig_Dev_GetSampleFrameCount', |
43 'inputs': [['resource', 'int64_t'], | 43 'inputs': [['resource', 'PP_Resource'], |
44 ], | 44 ], |
45 'outputs': [['sample_frame_count', 'int32_t'], | 45 'outputs': [['sample_frame_count', 'int32_t'], |
46 ] | 46 ] |
47 }, | 47 }, |
48 ] | 48 ] |
49 } | 49 } |
OLD | NEW |