waveInStop

Syntax

WORD waveInStop(hWaveIn)

This function stops waveform input.

Parameters

HWAVEIN hWaveIn

Specifies a handle to the waveform input device.

Return Value

Returns zero if the function was successful. Otherwise, it returns an error number. Possible error returns are:

MMSYSERR_INVALHANDLE

Specified device handle is invalid.

Comments

If there are any buffers in the queue, the current buffer will be marked as done (the dwBytesRecorded field in the header will contain the actual length of data), but any empty buffers in the queue will remain there. Calling this function when input is not started has no effect, and the function returns zero.

See Also

waveInStart, waveInReset