文档

支持

Vivox Core SDK

Vivox Core SDK

vx_evt_audio_device_hot_swap

Learn how to select audio input and output devices.
阅读时间1 分钟最后更新于 12 天前

Raised when audio device changes are made that impact the audio capture or rendering experience, or when other audio devices are added or removed.
#include <VxcEvents.h>

Public Attributes

Name

vx_evt_base_tbase
The common properties for all events.
vx_audio_device_hot_swap_event_type_tevent_type
The type of hot swap event.
vx_device_t *relevant_device
In the case of vx_audio_device_hot_swap_event_type_active_render_device_changed or vx_audio_device_hot_swap_event_type_active_capture_device_changed, the new active device.
VX_HANDLEaccount_handle
The account handle of the user whose device was changed as a result of the hot swap event.

Public Attributes Documentation

variable base

vx_evt_base_t base;
The common properties for all events.

variable event_type

vx_audio_device_hot_swap_event_type_t event_type;
The type of hot swap event.

variable relevant_device

vx_device_t * relevant_device;
In the case of vx_audio_device_hot_swap_event_type_active_render_device_changed or vx_audio_device_hot_swap_event_type_active_capture_device_changed, the new active device.

variable account_handle

VX_HANDLE account_handle;
The account handle of the user whose device was changed as a result of the hot swap event. If no user is logged in, this field is a null pointer.