audioOutputStream property

Pointer<COMObject> audioOutputStream

Implementation

Pointer<COMObject> get audioOutputStream {
  final retValuePtr = calloc<COMObject>();

  final hr = (ptr.ref.vtable + 12)
          .cast<
              Pointer<
                  NativeFunction<
                      Int32 Function(
                          Pointer, Pointer<COMObject> AudioOutputStream)>>>()
          .value
          .asFunction<
              int Function(Pointer, Pointer<COMObject> AudioOutputStream)>()(
      ptr.ref.lpVtbl, retValuePtr);

  if (FAILED(hr)) {
    free(retValuePtr);
    throw WindowsException(hr);
  }

  return retValuePtr;
}