WODM_RESTART

The WODM_RESTART message requests a waveform output driver to continue playback of a waveform after playback has been paused with the WODM_PAUSE message.

Parameters

uDeviceId

Device identifier (0, 1, 2, and so on) for the target device.

uMsg

WODM_RESET

dwUser

Device instance identifier.

dwParam1

Not used.

dwParam2

Not used.

Return 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 waveOutRestart return values in the Win32 SDK.

Comments

A client sends the WODM_RESET message by calling the user-mode driver’s wodMessage entry point, passing the specified parameters.

Data output should resume from the position that was saved when the WODM_PAUSE message was received.

If the driver receives a WODM_RESTART message and output is not in a paused state, it should to nothing except return MMSYSERR_NOERROR.

Typically, the user-mode driver resumes device output by calling DeviceIoControl, sending the kernel-mode driver an IOCTL_WAVE_SET_STATE control code.