The WODM_GETPITCH message requests a waveform output driver to return the specified device’s current pitch multiplier value.
The driver should return MMSYSERR_NOERROR if the operation succeeds. Otherwise it should return one of the MMSYSERR or WAVERR error codes defined in mmsystem.h. See waveOutGetPitch return values in the Win32 SDK.
A client sends the WODM_GETPITCH message by calling the user-mode driver’s wodMessage entry point, passing the specified parameters.
Support for the WODM_GETPITCH message by user-mode drivers is optional. If a driver supports the WODM_SETPITCH message, it must also support WODM_GETPITCH.
Typically, the user-mode driver calls DeviceIoControl to send the kernel-mode driver an IOCTL_WAVE_GET_PITCH control code.