waveOutGetPosition function Null safety winmm

int waveOutGetPosition(
  1. int hwo,
  2. Pointer<MMTIME> pmmt,
  3. int cbmmt

The waveOutGetPosition function retrieves the current playback position of the given waveform-audio output device.

MMRESULT waveOutGetPosition(
  LPMMTIME pmmt,
  UINT     cbmmt


int waveOutGetPosition(int hwo, Pointer<MMTIME> pmmt, int cbmmt) {
  final _waveOutGetPosition = _winmm.lookupFunction<
      Uint32 Function(IntPtr hwo, Pointer<MMTIME> pmmt, Uint32 cbmmt),
      int Function(
          int hwo, Pointer<MMTIME> pmmt, int cbmmt)>('waveOutGetPosition');
  return _waveOutGetPosition(hwo, pmmt, cbmmt);