waveOutGetVolume function Null safety winmm

int waveOutGetVolume (
  1. int hwo,
  2. Pointer<Uint32> pdwVolume
)

The waveOutGetVolume function retrieves the current volume level of the specified waveform-audio output device.

MMRESULT waveOutGetVolume(
  HWAVEOUT hwo,
  LPDWORD  pdwVolume
);

Implementation

int waveOutGetVolume(int hwo, Pointer<Uint32> pdwVolume) {
  final _waveOutGetVolume = _winmm.lookupFunction<
      Uint32 Function(IntPtr hwo, Pointer<Uint32> pdwVolume),
      int Function(int hwo, Pointer<Uint32> pdwVolume)>('waveOutGetVolume');
  return _waveOutGetVolume(hwo, pdwVolume);
}