getDefaultAudioEndpoint method

int getDefaultAudioEndpoint(
  1. int dataFlow,
  2. int role,
  3. Pointer<Pointer<COMObject>> ppEndpoint
)

Implementation

int getDefaultAudioEndpoint(
        int dataFlow, int role, Pointer<Pointer<COMObject>> ppEndpoint) =>
    (ptr.ref.vtable + 4)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(Pointer, Int32 dataFlow, Int32 role,
                            Pointer<Pointer<COMObject>> ppEndpoint)>>>()
            .value
            .asFunction<
                int Function(Pointer, int dataFlow, int role,
                    Pointer<Pointer<COMObject>> ppEndpoint)>()(
        ptr.ref.lpVtbl, dataFlow, role, ppEndpoint);