waveInStop(3mms) — Subroutines
Name
waveInStop --- Stop audio recording
Syntax
#include <mme/mme_api.h>
MMRESULT waveInStop(HWAVEIN hWaveIn)
Arguments
HWAVEIN hWaveIn
Specifies a handle to a waveform audio input device.
Description
The waveInStop function stops recording on the specified waveform audio input device. If there are any buffers in the queue, the current buffer is marked as done. The dwBytesRecorded field in the header contains the actual length of data but any empty buffers in the queue remain there.
Calling the waveInStop function if input is not started has no effect, and the function returns the MMSYSERR_NOERROR error code.
Extensions
None.
Return Values
Returns MMSYSERR_NOERROR if the function is successful; otherwise, it returns one of the following error codes:
MMSYSERR_INVALHANDLE@T{ The specified device handle is invalid. T} MMSYSERR_HANDLEBUSY@T{ The handle hWaveIn is in use on another thread. T}