Tham chiếu cấu trúc audio_policy_service_ops

Tham chiếu cấu trúc audio_policy_service_ops

#include < audio_policy.h >

Trường dữ liệu

audio_io_handle_t (* open_output ) (void * service, audio_devices_t * pDevices, uint32_t * pSamplingRate, audio_format_t * pFormat, audio_channel_mask_t * pChannelMask, uint32_t * pLatencyMs, audio_output_flags_t flags)
audio_io_handle_t (* open_duplicate_output ) (void * service, audio_io_handle_t output1, audio_io_handle_t output2)
int (* close_output ) (void * service, audio_io_handle_t output)
int (* Susan_output ) (void * dịch vụ, đầu ra audio_io_handle_t)
int (* restore_output ) (void * dịch vụ, đầu ra audio_io_handle_t)
audio_io_handle_t (* open_input ) (void * service, audio_devices_t * pDevices, uint32_t * pSamplingRate, audio_format_t * pFormat, audio_channel_mask_t * pChannelMask, audio_in_acoustics_t acoustics)
int (* close_input ) (void * service, audio_io_handle_t input)
int (* set_stream_volume ) (void * service, audio_stream_type_t stream, float volume, audio_io_handle_t output, int delay_ms)
int (* voidate_stream ) (void * service, audio_stream_type_t stream)
void (* set_parameters ) (void * service, audio_io_handle_t io_handle, const char * kv_pairs, int delay_ms)
char * (* get_parameters ) (void * service, audio_io_handle_t io_handle, const char * key)
int (* start_tone ) (void * service, audio_policy_tone_t tone, audio_stream_type_t stream)
int (* stop_tone ) (void * dịch vụ)
int (* set_voice_volume ) (void * service, float volume, int delay_ms)
int (* move_effects ) (void * service, audio_session_t session, audio_io_handle_t src_output, audio_io_handle_t dst_output)
audio_module_handle_t (* load_hw_module ) (void * dịch vụ, const char * name)
audio_io_handle_t (* open_output_on_module ) (void * service, audio_module_handle_t module, audio_devices_t * pDevices, uint32_t * pSamplingRate, audio_format_t * pFormat, audio_channel_mask_t * pChannelMask, uintload32_t * pLatency offload_flags, audio_off_flags
audio_io_handle_t (* open_input_on_module ) (void * service, audio_module_handle_t module, audio_devices_t * pDevices, uint32_t * pSamplingRate, audio_format_t * pFormat, audio_channel_mask_t * pChannelMask)

miêu tả cụ thể

Định nghĩa ở dòng 252 của tệp audio_policy.h .

Tài liệu thực địa

int (* close_input) (void * service, audio_io_handle_t input)

Định nghĩa ở dòng 315 của tệp audio_policy.h .

int (* close_output) (void * dịch vụ, đầu ra audio_io_handle_t)

Định nghĩa ở dòng 286 của tệp audio_policy.h .

char * (* get_parameters) (void * service, audio_io_handle_t io_handle, const char * key)

Định nghĩa ở dòng 350 của tệp audio_policy.h .

int (* validate_stream) (void * service, audio_stream_type_t stream)

Định nghĩa ở dòng 333 của tệp audio_policy.h .

audio_module_handle_t (* load_hw_module) (void * dịch vụ, const char * name)

Định nghĩa ở dòng 380 của tệp audio_policy.h .

int (* move_effects) (void * service, audio_session_t session, audio_io_handle_t src_output, audio_io_handle_t dst_output)

Định nghĩa ở dòng 369 của tệp audio_policy.h .

audio_io_handle_t (* open_duplicate_output) (void * service, audio_io_handle_t output1, audio_io_handle_t output2)

Định nghĩa ở dòng 281 của tệp audio_policy.h .

audio_io_handle_t (* open_input) (void * service, audio_devices_t * pDevices, uint32_t * pSamplingRate, audio_format_t * pFormat, audio_channel_mask_t * pChannelMask, audio_in_acoustics_t acoustics)

Định nghĩa ở dòng 307 của tệp audio_policy.h .

audio_io_handle_t (* open_input_on_module) (void * service, audio_module_handle_t module, audio_devices_t * pDevices, uint32_t * pSamplingRate, audio_format_t * pFormat, audio_channel_mask_t * pChannelMask)

Định nghĩa ở dòng 402 của tệp audio_policy.h .

audio_io_handle_t (* open_output) (void * service, audio_devices_t * pDevices, uint32_t * pSamplingRate, audio_format_t * pFormat, audio_channel_mask_t * pChannelMask, uint32_t * pLatencyMs, audio_output_flags

Định nghĩa ở dòng 269 của tệp audio_policy.h .

audio_io_handle_t (* open_output_on_module) (void * dịch vụ, audio_module_handle_t module, audio_devices_t * pDevices, uint32_t * pSamplingRate, audio_format_t * pFormat, audio_channel_mask_t * pChannelMask, audio_offload_tagsInfo

Định nghĩa ở dòng 387 của tệp audio_policy.h .

int (* restore_output) (void * service, audio_io_handle_t output)

Định nghĩa ở dòng 297 của tệp audio_policy.h .

void (* set_parameters) (void * service, audio_io_handle_t io_handle, const char * kv_pairs, int delay_ms)

Định nghĩa ở dòng 338 của tệp audio_policy.h .

int (* set_stream_volume) (void * service, audio_stream_type_t stream, float volume, audio_io_handle_t output, int delay_ms)

Định nghĩa ở dòng 326 của tệp audio_policy.h .

int (* set_voice_volume) (void * service, float volume, int delay_ms)

Định nghĩa ở dòng 364 của tệp audio_policy.h .

int (* start_tone) (void * service, audio_policy_tone_t tone, audio_stream_type_t stream)

Định nghĩa ở dòng 357 của tệp audio_policy.h .

int (* stop_tone) (void * dịch vụ)

Định nghĩa ở dòng 361 của tệp audio_policy.h .

int (* pause_output) (void * dịch vụ, đầu ra audio_io_handle_t)

Định nghĩa ở dòng 294 của tệp audio_policy.h .


Tài liệu cho cấu trúc này được tạo từ tệp sau:
  • phần cứng / libhardware / bao gồm / phần cứng / audio_policy.h