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 (v1.0) |
| 28 {'name': 'PPB_AudioConfig_RecommendSampleFrameCount_1_0', |
| 29 'inputs': [['request_sample_rate', 'int32_t'], |
| 30 ['request_sample_frame_count', 'int32_t'], |
| 31 ], |
| 32 'outputs': [['out_sample_frame_count', 'int32_t'] |
| 33 ] |
| 34 }, |
| 35 # Implements a call to get recommended sample frame count |
28 {'name': 'PPB_AudioConfig_RecommendSampleFrameCount', | 36 {'name': 'PPB_AudioConfig_RecommendSampleFrameCount', |
29 'inputs': [['request_sample_rate', 'int32_t'], | 37 'inputs': [['instance', 'PP_Instance'], |
| 38 ['request_sample_rate', 'int32_t'], |
30 ['request_sample_frame_count', 'int32_t'], | 39 ['request_sample_frame_count', 'int32_t'], |
31 ], | 40 ], |
32 'outputs': [['out_sample_frame_count', 'int32_t'] | 41 'outputs': [['out_sample_frame_count', 'int32_t'] |
33 ] | 42 ] |
34 }, | 43 }, |
35 # Implements a call to get the sample rate. | 44 # Implements a call to get the sample rate. |
36 {'name': 'PPB_AudioConfig_GetSampleRate', | 45 {'name': 'PPB_AudioConfig_GetSampleRate', |
37 'inputs': [['resource', 'PP_Resource'], | 46 'inputs': [['resource', 'PP_Resource'], |
38 ], | 47 ], |
39 'outputs': [['sample_rate', 'int32_t'] | 48 'outputs': [['sample_rate', 'int32_t'] |
40 ] | 49 ] |
41 }, | 50 }, |
42 # Implements a call to get the obtained sample frame count. | 51 # Implements a call to get the obtained sample frame count. |
43 {'name': 'PPB_AudioConfig_GetSampleFrameCount', | 52 {'name': 'PPB_AudioConfig_GetSampleFrameCount', |
44 'inputs': [['resource', 'PP_Resource'], | 53 'inputs': [['resource', 'PP_Resource'], |
45 ], | 54 ], |
46 'outputs': [['sample_frame_count', 'int32_t'], | 55 'outputs': [['sample_frame_count', 'int32_t'], |
47 ] | 56 ] |
48 }, | 57 }, |
| 58 # Implements a call to get recommended sample rate |
| 59 {'name': 'PPB_AudioConfig_RecommendSampleRate', |
| 60 'inputs': [['instance', 'PP_Instance'], |
| 61 ], |
| 62 'outputs': [['sample_rate', 'int32_t'] |
| 63 ] |
| 64 }, |
49 ] | 65 ] |
50 } | 66 } |
OLD | NEW |