Google is committed to advancing racial equity for Black communities. See how.

audio_policy_service_ops Struct Reference

audio_policy_service_ops Struct Reference

#include < audio_policy.h >

Data Fields

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)
 

Detailed Description

Definition at line 252 of file audio_policy.h .

Field Documentation

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

Definition at line 315 of file audio_policy.h .

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

Definition at line 286 of file audio_policy.h .

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

Definition at line 350 of file audio_policy.h .

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

Definition at line 333 of file audio_policy.h .

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

Definition at line 380 of file audio_policy.h .

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

Definition at line 369 of file audio_policy.h .

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

Definition at line 281 of file 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)

Definition at line 307 of file 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)

Definition at line 402 of file 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)

Definition at line 269 of file audio_policy.h .

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)

Definition at line 387 of file audio_policy.h .

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

Definition at line 297 of file audio_policy.h .

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

Definition at line 338 of file audio_policy.h .

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

Definition at line 326 of file audio_policy.h .

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

Definition at line 364 of file audio_policy.h .

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

Definition at line 357 of file audio_policy.h .

int(* stop_tone)(void *service)

Definition at line 361 of file audio_policy.h .

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

Definition at line 294 of file audio_policy.h .


The documentation for this struct was generated from the following file: