WODM_BREAKLOOP

The WODM_BREAKLOOP message requests a waveform output driver to break an output loop that was created with a WODM_WRITE message.

Parameters

uDeviceId

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

uMsg

WODM_BREAKLOOP

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

Comments

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

The driver should stop output of the loop buffers at the end of the next loop iteration.

If the driver receives this message and a loop is not in progress, it should return MMSYSERR_NOERROR.