waveOutGetPitch function Null safety winmm

int waveOutGetPitch(
  1. int hwo,
  2. Pointer<Uint32> pdwPitch
)

The waveOutGetPitch function retrieves the current pitch setting for the specified waveform-audio output device.

MMRESULT waveOutGetPitch(
  HWAVEOUT hwo,
  LPDWORD  pdwPitch
);

Implementation

int waveOutGetPitch(int hwo, Pointer<Uint32> pdwPitch) {
  final _waveOutGetPitch = _winmm.lookupFunction<
      Uint32 Function(IntPtr hwo, Pointer<Uint32> pdwPitch),
      int Function(int hwo, Pointer<Uint32> pdwPitch)>('waveOutGetPitch');
  return _waveOutGetPitch(hwo, pdwPitch);
}