onDefaultDeviceChanged method

int onDefaultDeviceChanged(
  1. int flow,
  2. int role,
  3. Pointer<Utf16> pwstrDefaultDeviceId
)

Implementation

int onDefaultDeviceChanged(
        int flow, int role, Pointer<Utf16> pwstrDefaultDeviceId) =>
    (ptr.ref.vtable + 6)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(Pointer, Int32 flow, Int32 role,
                            Pointer<Utf16> pwstrDefaultDeviceId)>>>()
            .value
            .asFunction<
                int Function(Pointer, int flow, int role,
                    Pointer<Utf16> pwstrDefaultDeviceId)>()(
        ptr.ref.lpVtbl, flow, role, pwstrDefaultDeviceId);