allowAudioOutputFormatChangesOnNextSet property

int allowAudioOutputFormatChangesOnNextSet

Implementation

int get allowAudioOutputFormatChangesOnNextSet {
  final retValuePtr = calloc<Int16>();

  try {
    final hr = (ptr.ref.vtable + 19)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(Pointer, Pointer<Int16> Allow)>>>()
            .value
            .asFunction<int Function(Pointer, Pointer<Int16> Allow)>()(
        ptr.ref.lpVtbl, retValuePtr);

    if (FAILED(hr)) throw WindowsException(hr);

    final retValue = retValuePtr.value;
    return retValue;
  } finally {
    free(retValuePtr);
  }
}
void allowAudioOutputFormatChangesOnNextSet=(int value)

Implementation

set allowAudioOutputFormatChangesOnNextSet(int value) {
  final hr = (ptr.ref.vtable + 18)
      .cast<Pointer<NativeFunction<Int32 Function(Pointer, Int16 Allow)>>>()
      .value
      .asFunction<int Function(Pointer, int Allow)>()(ptr.ref.lpVtbl, value);

  if (FAILED(hr)) throw WindowsException(hr);
}