audio_policy_service_ops 結構體參考資料

audio_policy_service_ops 結構體參考資料

#include < 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_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(*  suspend_output )(void *service, audio_io_handle_t output)
 
int(*  restore_output )(void *service, audio_io_handle_t output)
 
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(*  invalidate_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 *keys)
 
int(*  start_tone )(void *service, audio_policy_tone_t tone, audio_stream_type_t stream)
 
int(*  stop_tone )(void *service)
 
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 *service, 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, uint32_t *pLatencyMs, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo)
 
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)
 

詳細說明

定義位於檔案 audio_policy.h 252 行。

欄位說明文件

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

定義位於檔案 audio_policy.h 315 行。

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

定義位於檔案 audio_policy.h 286 行。

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

定義位於檔案 audio_policy.h 350 行。

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

定義位於檔案 audio_policy.h 333 行。

audio_module_handle_t(* load_hw_module)(void *service, const char *name)

定義位於檔案 audio_policy.h 380 行。

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

定義位於檔案 audio_policy.h 369 行。

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

定義位於檔案 audio_policy.h 281 行。

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)

定義位於檔案 audio_policy.h 307 行。

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)

定義位於檔案 audio_policy.h 402 行。

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_policy.h 269 行

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, uint32_t *pLatencyMs, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo)

定義位於檔案 audio_policy.h 387 行。

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

定義位於檔案 audio_policy.h 297 行。

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

定義位於檔案 audio_policy.h 338 行。

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

定義位於檔案 audio_policy.h 326 行。

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

定義位於檔案 audio_policy.h 364 行。

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

定義位於檔案 audio_policy.h 357 行。

int(* stop_tone)(void *service)

定義位於檔案 audio_policy.h 361 行。

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

定義位於檔案 audio_policy.h 294 行。


這個結構體的說明文件是由下列檔案產生: