waveOutGetID function Null safety winmm

int waveOutGetID(
  1. int hwo,
  2. Pointer<Uint32> puDeviceID
)

The waveOutGetID function retrieves the device identifier for the given waveform-audio output device.

MMRESULT waveOutGetID(
  HWAVEOUT hwo,
  LPUINT   puDeviceID
);

Implementation

int waveOutGetID(int hwo, Pointer<Uint32> puDeviceID) {
  final _waveOutGetID = _winmm.lookupFunction<
      Uint32 Function(IntPtr hwo, Pointer<Uint32> puDeviceID),
      int Function(int hwo, Pointer<Uint32> puDeviceID)>('waveOutGetID');
  return _waveOutGetID(hwo, puDeviceID);
}