waveOutUnprepareHeader function Null safety winmm

int waveOutUnprepareHeader(
  1. int hwo,
  2. Pointer<WAVEHDR> pwh,
  3. int cbwh

The waveOutUnprepareHeader function cleans up the preparation performed by the waveOutPrepareHeader function. This function must be called after the device driver is finished with a data block. You must call this function before freeing the buffer.

MMRESULT waveOutUnprepareHeader(
  HWAVEOUT  hwo,
  UINT      cbwh


int waveOutUnprepareHeader(int hwo, Pointer<WAVEHDR> pwh, int cbwh) {
  final _waveOutUnprepareHeader = _winmm.lookupFunction<
      Uint32 Function(IntPtr hwo, Pointer<WAVEHDR> pwh, Uint32 cbwh),
      int Function(
          int hwo, Pointer<WAVEHDR> pwh, int cbwh)>('waveOutUnprepareHeader');
  return _waveOutUnprepareHeader(hwo, pwh, cbwh);