waveOutPrepareHeader function Null safety winmm

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

The waveOutPrepareHeader function prepares a waveform-audio data block for playback.

MMRESULT waveOutPrepareHeader(
  HWAVEOUT  hwo,
  LPWAVEHDR pwh,
  UINT      cbwh
);

Implementation

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