Sent to a waveform output device driver to set the playback rate for a device.
MMSYSERR_NOTENABLED | The driver failed to load or initialize. |
MMSYSERR_NOTSUPPORTED | The driver does not support changes to the playback rate. |
Driver support for playback rate changes is optional. When a driver receives a WODM_GETDEVCAPS message, it should indicate support for playback rate
changes by setting or clearing the WAVECAPS_PLAYBACKRATE bit in the dwSupport field of the WAVEOUTCAPS data structure. If a driver supports the WODM_SETPLAYBACKRATE message, then it must also support WODM_GETPLAYBACKRATE.
Changes to the playback rate alter the pitch of a waveform during playback and are usually implemented by the driver by skipping or repeating samples. For example, if the playback rate was 2.0, the driver would play every second sample, at the original playback rate.
WODM_GETPLAYBACKRATE, WODM_SETPITCH