OLD | NEW |
1 # Copyright (c) 2010 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 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 | 5 # This file declares the RPC methods used to implement PPB_AudioConfig |
6 # calls from the plugin. The functions are described in | 6 # calls from the plugin. The functions are described in |
7 # ppapi/c/ppb_audio_config.h. | 7 # ppapi/c/ppb_audio_config.h. |
8 { | 8 { |
9 'name': 'PpbAudioConfigRpc', | 9 'name': 'PpbAudioConfigRpc', |
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_CreateStereo16Bit', | 12 {'name': 'PPB_AudioConfig_CreateStereo16Bit', |
13 'inputs': [['instance', 'PP_Instance'], | 13 'inputs': [['instance', 'PP_Instance'], |
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', 'PP_Resource'], | 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_IsAudioConfig', | 21 {'name': 'PPB_AudioConfig_IsAudioConfig', |
22 'inputs': [['resource', 'PP_Resource'], | 22 'inputs': [['resource', 'PP_Resource'], |
23 ], | 23 ], |
24 'outputs': [['out_bool', 'int32_t'] | 24 'outputs': [['out_bool', 'int32_t'] |
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_RecommendSampleFrameCount', | 28 {'name': 'PPB_AudioConfig_RecommendSampleFrameCount', |
29 'inputs': [['request_sample_rate', 'int32_t'], | 29 'inputs': [['instance', 'PP_Instance'], |
| 30 ['request_sample_rate', 'int32_t'], |
30 ['request_sample_frame_count', 'int32_t'], | 31 ['request_sample_frame_count', 'int32_t'], |
31 ], | 32 ], |
32 'outputs': [['out_sample_frame_count', 'int32_t'] | 33 'outputs': [['out_sample_frame_count', 'int32_t'] |
33 ] | 34 ] |
34 }, | 35 }, |
35 # Implements a call to get the sample rate. | 36 # Implements a call to get the sample rate. |
36 {'name': 'PPB_AudioConfig_GetSampleRate', | 37 {'name': 'PPB_AudioConfig_GetSampleRate', |
37 'inputs': [['resource', 'PP_Resource'], | 38 'inputs': [['resource', 'PP_Resource'], |
38 ], | 39 ], |
39 'outputs': [['sample_rate', 'int32_t'] | 40 'outputs': [['sample_rate', 'int32_t'] |
40 ] | 41 ] |
41 }, | 42 }, |
42 # Implements a call to get the obtained sample frame count. | 43 # Implements a call to get the obtained sample frame count. |
43 {'name': 'PPB_AudioConfig_GetSampleFrameCount', | 44 {'name': 'PPB_AudioConfig_GetSampleFrameCount', |
44 'inputs': [['resource', 'PP_Resource'], | 45 'inputs': [['resource', 'PP_Resource'], |
45 ], | 46 ], |
46 'outputs': [['sample_frame_count', 'int32_t'], | 47 'outputs': [['sample_frame_count', 'int32_t'], |
47 ] | 48 ] |
48 }, | 49 }, |
| 50 # Implements a call to get recommended sample rate |
| 51 {'name': 'PPB_AudioConfig_RecommendSampleRate', |
| 52 'inputs': [['instance', 'PP_Instance'], |
| 53 ], |
| 54 'outputs': [['sample_rate', 'int32_t'] |
| 55 ] |
| 56 }, |
49 ] | 57 ] |
50 } | 58 } |
OLD | NEW |