ma_enum_devices_callback_proc typedef

The callback for handling device enumeration. This is fired from ma_context_enumerate_devices().

Parameters

pContext (in) A pointer to the context performing the enumeration.

deviceType (in) The type of the device being enumerated. This will always be either ma_device_type_playback or ma_device_type_capture.

pInfo (in) A pointer to a ma_device_info containing the ID and name of the enumerated device. Note that this will not include detailed information about the device, only basic information (ID and name). The reason for this is that it would otherwise require opening the backend device to probe for the information which is too inefficient.

pUserData (in) The user data pointer passed into ma_context_enumerate_devices().

Implementation

typedef ma_enum_devices_callback_proc
    = ffi.Pointer<ffi.NativeFunction<ma_enum_devices_callback_procFunction>>;