waveOutMessage function Null safety winmm

int waveOutMessage(
  1. int hwo,
  2. int uMsg,
  3. int dw1,
  4. int dw2

The waveOutMessage function sends messages to the waveform-audio output device drivers.

MMRESULT waveOutMessage(
  HWAVEOUT  hwo,
  UINT      uMsg,
  DWORD_PTR dw1,


int waveOutMessage(int hwo, int uMsg, int dw1, int dw2) {
  final _waveOutMessage = _winmm.lookupFunction<
      Uint32 Function(IntPtr hwo, Uint32 uMsg, IntPtr dw1, IntPtr dw2),
      int Function(int hwo, int uMsg, int dw1, int dw2)>('waveOutMessage');
  return _waveOutMessage(hwo, uMsg, dw1, dw2);