waveOutSetPlaybackRate function Null safety winmm

int waveOutSetPlaybackRate(
  1. int hwo,
  2. int dwRate
)

The waveOutSetPlaybackRate function sets the playback rate for the specified waveform-audio output device.

MMRESULT waveOutSetPlaybackRate(
  HWAVEOUT hwo,
  DWORD    dwRate
);

Implementation

int waveOutSetPlaybackRate(int hwo, int dwRate) {
  final _waveOutSetPlaybackRate = _winmm.lookupFunction<
      Uint32 Function(IntPtr hwo, Uint32 dwRate),
      int Function(int hwo, int dwRate)>('waveOutSetPlaybackRate');
  return _waveOutSetPlaybackRate(hwo, dwRate);
}