waveOutGetPlaybackRate function Null safety winmm

int waveOutGetPlaybackRate(
  1. int hwo,
  2. Pointer<Uint32> pdwRate
)

The waveOutGetPlaybackRate function retrieves the current playback rate for the specified waveform-audio output device.

MMRESULT waveOutGetPlaybackRate(
  HWAVEOUT hwo,
  LPDWORD  pdwRate
);

Implementation

int waveOutGetPlaybackRate(int hwo, Pointer<Uint32> pdwRate) {
  final _waveOutGetPlaybackRate = _winmm.lookupFunction<
      Uint32 Function(IntPtr hwo, Pointer<Uint32> pdwRate),
      int Function(int hwo, Pointer<Uint32> pdwRate)>('waveOutGetPlaybackRate');
  return _waveOutGetPlaybackRate(hwo, pdwRate);
}