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_AudioConfig |
| 6 # calls from the plugin. The functions are described in |
| 7 # ppapi/c/ppb_audio_config.h. |
| 8 { |
| 9 'name': 'PpbAudioConfigRpc', |
| 10 'rpcs': [ |
| 11 # Implements a call to create an audio configuration for stereo output
. |
| 12 {'name': 'PPB_AudioConfig_CreateStereo16Bit', |
| 13 'inputs': [['instance', 'PP_Instance'], |
| 14 ['sample_rate', 'int32_t'], |
| 15 ['sample_frame_count', 'int32_t'], |
| 16 ], |
| 17 'outputs': [['resource', 'PP_Resource'], |
| 18 ] |
| 19 }, |
| 20 # Implements a call to check if this is an AudioConfig. |
| 21 {'name': 'PPB_AudioConfig_IsAudioConfig', |
| 22 'inputs': [['resource', 'PP_Resource'], |
| 23 ], |
| 24 'outputs': [['out_bool', 'int32_t'] |
| 25 ] |
| 26 }, |
| 27 # Implements a call to get recommended sample frame count. |
| 28 {'name': 'PPB_AudioConfig_RecommendSampleFrameCount', |
| 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 the sample rate. |
| 36 {'name': 'PPB_AudioConfig_GetSampleRate', |
| 37 'inputs': [['resource', 'PP_Resource'], |
| 38 ], |
| 39 'outputs': [['sample_rate', 'int32_t'] |
| 40 ] |
| 41 }, |
| 42 # Implements a call to get the obtained sample frame count. |
| 43 {'name': 'PPB_AudioConfig_GetSampleFrameCount', |
| 44 'inputs': [['resource', 'PP_Resource'], |
| 45 ], |
| 46 'outputs': [['sample_frame_count', 'int32_t'], |
| 47 ] |
| 48 }, |
| 49 ] |
| 50 } |
OLD | NEW |