VIAudioDeviceListChanged typedef

VIAudioDeviceListChanged = void Function(VIAudioDeviceManager audioManager, List<VIAudioDevice> deviceList)

Signature for callbacks reporting that a new audio device is connected or a previously connected audio device is disconnected.

For iOS: if the disconnected device was not selected before via VIAudioDeviceManager.selectAudioDevice API, this callback may be not invoked.

audioManager - VIAudioDeviceManager instance initiated the event

deviceList - List of currently available audio devices.

Implementation

typedef void VIAudioDeviceListChanged(
  VIAudioDeviceManager audioManager,
  List<VIAudioDevice> deviceList,
);