การอ้างอิงโครงสร้าง audio_policy

การอ้างอิงโครงสร้าง audio_policy

#include < audio_policy.h >

เขตข้อมูล

อินท์(* set_device_connection_state ) (struct audio_policy *pol, อุปกรณ์ audio_devices_t, สถานะ audio_policy_dev_state_t, const char *device_address)
เสียง_นโยบาย_dev_state_t(* get_device_connection_state ) (const struct audio_policy *pol, อุปกรณ์ audio_devices_t, const char *device_address)
เป็นโมฆะ(* set_phone_state ) (struct audio_policy *pol, สถานะ audio_mode_t)
เป็นโมฆะ(* set_ringer_mode ) (struct audio_policy *pol, โหมด uint32_t, หน้ากาก uint32_t)
เป็นโมฆะ(* set_force_use ) (struct audio_policy *pol, การใช้งาน audio_policy_force_use_t, การกำหนดค่า audio_policy_forced_cfg_t)
เสียง_นโยบาย_บังคับ_cfg_t(* get_force_use ) (const struct audio_policy *pol, การใช้งาน audio_policy_force_use_t)
เป็นโมฆะ(* set_can_mute_enforced_audible ) (struct audio_policy *pol, bool can_mute)
อินท์(* init_check )(const struct audio_policy *pol)
เสียง_io_handle_t(* get_output ) (struct audio_policy *pol, สตรีม audio_stream_type_t, uint32_t samplingRate, รูปแบบ audio_format_t, audio_channel_mask_t channelMask, แฟล็ก audio_output_flags_t, const audio_offload_info_t *offloadInfo)
อินท์(* start_output ) (struct audio_policy *pol, เอาต์พุต audio_io_handle_t, สตรีม audio_stream_type_t, เซสชัน audio_session_t)
อินท์(* stop_output ) (struct audio_policy *pol, เอาต์พุต audio_io_handle_t, สตรีม audio_stream_type_t, เซสชัน audio_session_t)
เป็นโมฆะ(* release_output ) (struct audio_policy *pol, เอาต์พุต audio_io_handle_t)
เสียง_io_handle_t(* get_input ) (struct audio_policy *pol, audio_source_t inputSource, uint32_t อัตราการสุ่มตัวอย่าง, รูปแบบ audio_format_t, audio_channel_mask_t channelMask, อะคูสติก audio_in_acoustics_t)
อินท์(* start_input ) (struct audio_policy *pol, อินพุต audio_io_handle_t)
อินท์(* stop_input ) (struct audio_policy *pol, อินพุต audio_io_handle_t)
เป็นโมฆะ(* release_input ) (struct audio_policy *pol, อินพุต audio_io_handle_t)
เป็นโมฆะ(* init_stream_volume ) (struct audio_policy *pol, สตรีม audio_stream_type_t, int index_min, int index_max)
อินท์(* set_stream_volume_index ) (struct audio_policy *pol, สตรีม audio_stream_type_t, ดัชนี int)
อินท์(* get_stream_volume_index ) (const struct audio_policy *pol, สตรีม audio_stream_type_t, int *index)
อินท์(* set_stream_volume_index_for_device ) (struct audio_policy *pol, สตรีม audio_stream_type_t, ดัชนี int, อุปกรณ์ audio_devices_t)
อินท์(* get_stream_volume_index_for_device ) (const struct audio_policy *pol, สตรีม audio_stream_type_t, int *index, อุปกรณ์ audio_devices_t)
uint32_t(* get_strategy_for_stream ) (const struct audio_policy *pol, สตรีม audio_stream_type_t)
เสียง_อุปกรณ์_t(* get_devices_for_stream ) (const struct audio_policy *pol, สตรีม audio_stream_type_t)
เสียง_io_handle_t(* get_output_for_effect ) (struct audio_policy *pol, const struct effect_descriptor_s *desc)
อินท์(* register_effect ) (struct audio_policy *pol, const struct effect_descriptor_s *desc, เอาต์พุต audio_io_handle_t, กลยุทธ์ uint32_t, เซสชัน audio_session_t, int id)
อินท์(* unregister_effect ) (struct audio_policy *pol, int id)
อินท์(* set_effect_enabled )(struct audio_policy *pol, int id, เปิดใช้งานบูล)
บูล(* is_stream_active ) (const struct audio_policy * pol, สตรีม audio_stream_type_t, uint32_t in_past_ms)
บูล(* is_stream_active_remotely ) (const struct audio_policy *pol, สตรีม audio_stream_type_t, uint32_t in_past_ms)
บูล(* is_source_active ) (สร้างโครงสร้าง audio_policy *pol, แหล่งที่มา audio_source_t)
อินท์(* ดัมพ์ )(const struct audio_policy *pol, int fd)
บูล(* is_offload_supported )(const struct audio_policy *pol, const audio_offload_info_t *ข้อมูล)

คำอธิบายโดยละเอียด

คำจำกัดความที่บรรทัด 83 ของไฟล์ audio_policy.h

เอกสารภาคสนาม

int(* ดัมพ์)(const struct audio_policy *pol, int fd)

คำจำกัดความที่บรรทัด 244 ของไฟล์ audio_policy.h

audio_policy_dev_state_t(* get_device_connection_state) (const struct audio_policy *pol, อุปกรณ์ audio_devices_t, const char *device_address)

คำจำกัดความที่บรรทัด 95 ของไฟล์ audio_policy.h

audio_devices_t (* get_devices_for_stream) (const struct audio_policy * pol, สตรีม audio_stream_type_t)

คำจำกัดความที่บรรทัด 214 ของไฟล์ audio_policy.h

audio_policy_forced_cfg_t (* get_force_use) (const struct audio_policy * pol การใช้งาน audio_policy_force_use_t)

คำจำกัดความที่บรรทัด 114 ของไฟล์ audio_policy.h

audio_io_handle_t (* get_input) (struct audio_policy * pol, audio_source_t inputSource, อัตราการสุ่มตัวอย่าง uint32_t, รูปแบบ audio_format_t, audio_channel_mask_t channelMask, อะคูสติก audio_in_acoustics_t)

คำจำกัดความที่บรรทัด 158 ของไฟล์ audio_policy.h

audio_io_handle_t(* get_output)(struct audio_policy *pol, สตรีม audio_stream_type_t, อัตราการสุ่มตัวอย่าง uint32_t, รูปแบบ audio_format_t, audio_channel_mask_t channelMask, ธง audio_output_flags_t, const audio_offload_info_t *offloadInfo)

คำจำกัดความที่บรรทัด 131 ของไฟล์ audio_policy.h

audio_io_handle_t(* get_output_for_effect)(struct audio_policy *pol, const struct effect_descriptor_s *desc)

คำจำกัดความที่บรรทัด 218 ของไฟล์ audio_policy.h

uint32_t (* get_strategy_for_stream) (const struct audio_policy * pol, สตรีม audio_stream_type_t)

คำจำกัดความที่บรรทัด 210 ของไฟล์ audio_policy.h

int (* get_stream_volume_index) (const struct audio_policy * pol, สตรีม audio_stream_type_t, int * ดัชนี)

คำจำกัดความที่บรรทัด 191 ของไฟล์ audio_policy.h

int (* get_stream_volume_index_for_device) (const struct audio_policy * pol, สตรีม audio_stream_type_t, int * ดัชนี, อุปกรณ์ audio_devices_t)

คำจำกัดความที่บรรทัด 204 ของไฟล์ audio_policy.h

int(* init_check)(const struct audio_policy *pol)

คำจำกัดความที่บรรทัด 123 ของไฟล์ audio_policy.h

เป็นโมฆะ (* init_stream_volume) (struct audio_policy * pol, สตรีม audio_stream_type_t, int index_min, int index_max)

คำจำกัดความที่บรรทัด 179 ของไฟล์ audio_policy.h

บูล (* is_offload_supported) (const struct audio_policy *pol, const audio_offload_info_t *ข้อมูล)

คำจำกัดความที่บรรทัด 247 ของไฟล์ audio_policy.h

bool(* is_source_active)(const struct audio_policy *pol, แหล่งที่มา audio_source_t)

คำจำกัดความที่บรรทัด 240 ของไฟล์ audio_policy.h

บูล (* is_stream_active) (const struct audio_policy * pol, สตรีม audio_stream_type_t, uint32_t in_past_ms)

คำจำกัดความที่บรรทัด 232 ของไฟล์ audio_policy.h

บูล (* is_stream_active_remotely) (const struct audio_policy *pol, สตรีม audio_stream_type_t, uint32_t in_past_ms)

คำจำกัดความที่บรรทัด 236 ของไฟล์ audio_policy.h

int (* register_effect) (struct audio_policy *pol, const struct effect_descriptor_s *desc, เอาต์พุต audio_io_handle_t, กลยุทธ์ uint32_t, เซสชัน audio_session_t, int id)

คำจำกัดความที่บรรทัด 221 ของไฟล์ audio_policy.h

เป็นโมฆะ (* release_input) (struct audio_policy * pol, อินพุต audio_io_handle_t)

คำจำกัดความที่บรรทัด 171 ของไฟล์ audio_policy.h

เป็นโมฆะ (* release_output) (struct audio_policy * pol, เอาต์พุต audio_io_handle_t)

คำจำกัดความที่บรรทัด 154 ของไฟล์ audio_policy.h

เป็นโมฆะ (* set_can_mute_enforced_audible) (struct audio_policy *pol, bool can_mute)

คำจำกัดความที่บรรทัด 119 ของไฟล์ audio_policy.h

int (* set_device_connection_state) (struct audio_policy * pol, อุปกรณ์ audio_devices_t, สถานะ audio_policy_dev_state_t, const char * device_address)

คำจำกัดความที่บรรทัด 89 ของไฟล์ audio_policy.h

int(* set_effect_enabled)(struct audio_policy *pol, int id, เปิดใช้งานบูล)

คำจำกัดความที่บรรทัด 230 ของไฟล์ audio_policy.h

เป็นโมฆะ (* set_force_use) (struct audio_policy *pol, การใช้งาน audio_policy_force_use_t, การกำหนดค่า audio_policy_forced_cfg_t)

คำจำกัดความที่บรรทัด 109 ของไฟล์ audio_policy.h

เป็นโมฆะ (* set_phone_state) (struct audio_policy * pol, สถานะ audio_mode_t)

คำจำกัดความที่บรรทัด 102 ของไฟล์ audio_policy.h

เป็นโมฆะ (* set_ringer_mode) (struct audio_policy * pol, โหมด uint32_t, หน้ากาก uint32_t)

คำจำกัดความที่บรรทัด 105 ของไฟล์ audio_policy.h

int (* set_stream_volume_index) (struct audio_policy * pol, สตรีม audio_stream_type_t, ดัชนี int)

คำจำกัดความที่บรรทัด 186 ของไฟล์ audio_policy.h

int (* set_stream_volume_index_for_device) (struct audio_policy * pol, สตรีม audio_stream_type_t, ดัชนี int, อุปกรณ์ audio_devices_t)

คำจำกัดความที่บรรทัด 198 ของไฟล์ audio_policy.h

int (* start_input) (struct audio_policy * pol, อินพุต audio_io_handle_t)

คำจำกัดความที่บรรทัด 165 ของไฟล์ audio_policy.h

int (* start_output) (struct audio_policy * pol, เอาต์พุต audio_io_handle_t, สตรีม audio_stream_type_t, เซสชัน audio_session_t)

คำจำกัดความที่บรรทัด 141 ของไฟล์ audio_policy.h

int (* stop_input) (struct audio_policy * pol, อินพุต audio_io_handle_t)

คำจำกัดความที่บรรทัด 168 ของไฟล์ audio_policy.h

int (* stop_output) (struct audio_policy *pol, เอาต์พุต audio_io_handle_t, สตรีม audio_stream_type_t, เซสชัน audio_session_t)

คำจำกัดความที่บรรทัด 148 ของไฟล์ audio_policy.h

int(* unregister_effect)(struct audio_policy *pol, int id)

คำจำกัดความที่บรรทัด 228 ของไฟล์ audio_policy.h


เอกสารประกอบสำหรับโครงสร้างนี้สร้างขึ้นจากไฟล์ต่อไปนี้:
  • ฮาร์ดแวร์ / libhardware / รวม / ฮาร์ดแวร์ / audio_policy.h