Tham chiếu cấu trúc audio_policy
#include < audio_policy.h >
Trường dữ liệu | |
int (* | set_device_connection_state ) (struct audio_policy * pol, audio_devices_t device, audio_policy_dev_state_t state, const char * device_address) |
audio_policy_dev_state_t (* | get_device_connection_state ) (const struct audio_policy * pol, audio_devices_t device, const char * device_address) |
void (* | set_phone_state ) (struct audio_policy * pol, audio_mode_t bang) |
void (* | set_ringer_mode ) (struct audio_policy * pol, chế độ uint32_t, uint32_t mask) |
void (* | set_force_use ) (struct audio_policy * pol, audio_policy_force_use_t use, audio_policy_forced_cfg_t config) |
audio_policy_forced_cfg_t (* | get_force_use ) (const struct audio_policy * pol, cách sử dụng audio_policy_force_use_t) |
void (* | set_can_mute_enforced_audible ) (struct audio_policy * pol, bool can_mute) |
int (* | init_check ) (const struct audio_policy * pol) |
audio_io_handle_t (* | get_output ) (struct audio_policy * pol, audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t * offloadInfo) |
int (* | start_output ) (struct audio_policy * pol, audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) |
int (* | stop_output ) (struct audio_policy * pol, đầu ra audio_io_handle_t, luồng audio_stream_type_t, phiên audio_session_t) |
void (* | release_output ) (struct audio_policy * pol, audio_io_handle_t output) |
audio_io_handle_t (* | get_input ) (struct audio_policy * pol, audio_source_t inputSource, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_in_acoustics_t acoustics) |
int (* | start_input ) (struct audio_policy * pol, audio_io_handle_t input) |
int (* | stop_input ) (đầu vào struct audio_policy * pol, audio_io_handle_t) |
void (* | release_input ) (struct audio_policy * pol, audio_io_handle_t input) |
void (* | init_stream_volume ) (struct audio_policy * pol, audio_stream_type_t stream, int index_min, int index_max) |
int (* | set_stream_volume_index ) (struct audio_policy * pol, audio_stream_type_t stream, int index) |
int (* | get_stream_volume_index ) (const struct audio_policy * pol, audio_stream_type_t stream, int * index) |
int (* | set_stream_volume_index_for_device ) (struct audio_policy * pol, audio_stream_type_t stream, int index, audio_devices_t device) |
int (* | get_stream_volume_index_for_device ) (const struct audio_policy * pol, audio_stream_type_t stream, int * index, audio_devices_t device) |
uint32_t (* | get_strategy_for_stream ) (const struct audio_policy * pol, audio_stream_type_t stream) |
audio_devices_t (* | get_devices_for_stream ) (const struct audio_policy * pol, audio_stream_type_t stream) |
audio_io_handle_t (* | get_output_for_effect ) (struct audio_policy * pol, const struct effect_descriptor_s * desc) |
int (* | register_effect ) (struct audio_policy * pol, const struct effect_descriptor_s * desc, đầu ra audio_io_handle_t, chiến lược uint32_t, phiên audio_session_t, int id) |
int (* | unregister_effect ) (struct audio_policy * pol, int id) |
int (* | set_effect_enabled ) (struct audio_policy * pol, int id, bool enable) |
bool (* | is_stream_active ) (const struct audio_policy * pol, audio_stream_type_t stream, uint32_t in_past_ms) |
bool (* | is_stream_active_remotely ) (const struct audio_policy * pol, audio_stream_type_t stream, uint32_t in_past_ms) |
bool (* | is_source_active ) (const struct audio_policy * pol, nguồn audio_source_t) |
int (* | dump ) (const struct audio_policy * pol, int fd) |
bool (* | is_offload_supported ) (const struct audio_policy * pol, const audio_offload_info_t * info) |
miêu tả cụ thể
Định nghĩa ở dòng 83 của tệp audio_policy.h .
Tài liệu thực địa
int (* dump) (const struct audio_policy * pol, int fd) |
Định nghĩa ở dòng 244 của tệp audio_policy.h .
audio_policy_dev_state_t (* get_device_connection_state) (const struct audio_policy * pol, audio_devices_t device, const char * device_address) |
Định nghĩa ở dòng 95 của tệp audio_policy.h .
audio_devices_t (* get_devices_for_stream) (const struct audio_policy * pol, audio_stream_type_t stream) |
Định nghĩa ở dòng 214 của tệp audio_policy.h .
audio_policy_forced_cfg_t (* get_force_use) (const struct audio_policy * pol, cách sử dụng audio_policy_force_use_t) |
Định nghĩa ở dòng 114 của tệp audio_policy.h .
audio_io_handle_t (* get_input) (struct audio_policy * pol, audio_source_t inputSource, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_in_acoustics_t acoustics) |
Định nghĩa ở dòng 158 của tệp audio_policy.h .
audio_io_handle_t (* get_output) (struct audio_policy * pol, audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t * offloadInfo) |
Định nghĩa ở dòng 131 của tệp audio_policy.h .
audio_io_handle_t (* get_output_for_effect) (struct audio_policy * pol, const struct effect_descriptor_s * desc) |
Định nghĩa ở dòng 218 của tệp audio_policy.h .
uint32_t (* get_strategy_for_stream) (const struct audio_policy * pol, audio_stream_type_t stream) |
Định nghĩa ở dòng 210 của tệp audio_policy.h .
int (* get_stream_volume_index) (const struct audio_policy * pol, audio_stream_type_t stream, int * index) |
Định nghĩa ở dòng 191 của tệp audio_policy.h .
int (* get_stream_volume_index_for_device) (const struct audio_policy * pol, audio_stream_type_t stream, int * index, audio_devices_t device) |
Định nghĩa ở dòng 204 của tệp audio_policy.h .
int (* init_check) (const struct audio_policy * pol) |
Định nghĩa ở dòng 123 của tệp audio_policy.h .
void (* init_stream_volume) (struct audio_policy * pol, audio_stream_type_t stream, int index_min, int index_max) |
Định nghĩa ở dòng 179 của tệp audio_policy.h .
bool (* is_offload_supported) (const struct audio_policy * pol, const audio_offload_info_t * info) |
Định nghĩa ở dòng 247 của tệp audio_policy.h .
bool (* is_source_active) (const struct audio_policy * pol, audio_source_t source) |
Định nghĩa ở dòng 240 của tệp audio_policy.h .
bool (* is_stream_active) (const struct audio_policy * pol, audio_stream_type_t stream, uint32_t in_past_ms) |
Định nghĩa ở dòng 232 của tệp audio_policy.h .
bool (* is_stream_active_remotely) (const struct audio_policy * pol, audio_stream_type_t stream, uint32_t in_past_ms) |
Định nghĩa ở dòng 236 của tệp audio_policy.h .
int (* register_effect) (struct audio_policy * pol, const struct effect_descriptor_s * desc, audio_io_handle_t output, uint32_t strategy, audio_session_t session, int id) |
Định nghĩa ở dòng 221 của tệp audio_policy.h .
void (* release_input) (struct audio_policy * pol, audio_io_handle_t input) |
Định nghĩa ở dòng 171 của tệp audio_policy.h .
void (* release_output) (struct audio_policy * pol, audio_io_handle_t output) |
Định nghĩa ở dòng 154 của tệp audio_policy.h .
void (* set_can_mute_enforced_audible) (struct audio_policy * pol, bool can_mute) |
Định nghĩa ở dòng 119 của tệp audio_policy.h .
int (* set_device_connection_state) (struct audio_policy * pol, audio_devices_t state, audio_policy_dev_state_t state, const char * device_address) |
Định nghĩa ở dòng 89 của tệp audio_policy.h .
int (* set_effect_enabled) (struct audio_policy * pol, int id, bool enable) |
Định nghĩa ở dòng 230 của tệp audio_policy.h .
void (* set_force_use) (struct audio_policy * pol, audio_policy_force_use_t use, audio_policy_forced_cfg_t config) |
Định nghĩa ở dòng 109 của tệp audio_policy.h .
void (* set_phone_state) (struct audio_policy * pol, audio_mode_t state) |
Định nghĩa ở dòng 102 của tệp audio_policy.h .
void (* set_ringer_mode) (struct audio_policy * pol, uint32_t mode, uint32_t mask) |
Định nghĩa ở dòng 105 của tệp audio_policy.h .
int (* set_stream_volume_index) (struct audio_policy * pol, audio_stream_type_t stream, int index) |
Định nghĩa ở dòng 186 của tệp audio_policy.h .
int (* set_stream_volume_index_for_device) (struct audio_policy * pol, audio_stream_type_t stream, int index, audio_devices_t device) |
Định nghĩa ở dòng 198 của tệp audio_policy.h .
int (* start_input) (struct audio_policy * pol, audio_io_handle_t input) |
Định nghĩa ở dòng 165 của tệp audio_policy.h .
int (* start_output) (struct audio_policy * pol, đầu ra audio_io_handle_t, luồng audio_stream_type_t, phiên audio_session_t) |
Định nghĩa ở dòng 141 của tệp audio_policy.h .
int (* stop_input) (struct audio_policy * pol, audio_io_handle_t input) |
Định nghĩa ở dòng 168 của tệp audio_policy.h .
int (* stop_output) (struct audio_policy * pol, đầu ra audio_io_handle_t, luồng audio_stream_type_t, phiên audio_session_t) |
Định nghĩa ở dòng 148 của tệp audio_policy.h .
int (* unregister_effect) (struct audio_policy * pol, int id) |
Định nghĩa ở dòng 228 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