Android Hardware Abstraction Layer
Data Fields
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(* set_stream_output )(void *service, audio_stream_type_t stream, audio_io_handle_t output)
 
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, int 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 255 of file audio_policy.h.

Field Documentation

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

Definition at line 318 of file audio_policy.h.

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

Definition at line 289 of file audio_policy.h.

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

Definition at line 354 of file audio_policy.h.

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

Definition at line 384 of file audio_policy.h.

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

Definition at line 373 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 284 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 310 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 406 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 272 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 391 of file audio_policy.h.

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

Definition at line 300 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 342 of file audio_policy.h.

int(* set_stream_output)(void *service, audio_stream_type_t stream, audio_io_handle_t output)

Definition at line 336 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 329 of file audio_policy.h.

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

Definition at line 368 of file audio_policy.h.

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

Definition at line 361 of file audio_policy.h.

int(* stop_tone)(void *service)

Definition at line 365 of file audio_policy.h.

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

Definition at line 297 of file audio_policy.h.


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