Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.13 KB

waveInClose.md

File metadata and controls

48 lines (32 loc) · 1.13 KB

Home

Function name : waveInClose

Group: Windows Multimedia - Library: winmm


The waveInClose function closes the given waveform-audio input device.


Code examples:

Quering a waveform-audio input device
Class for sound recording

Declaration:

MMRESULT waveInClose(
  HWAVEIN hwi
);  

FoxPro declaration:

DECLARE INTEGER waveInClose IN winmm;
	INTEGER hwi  

Parameters:

hwi Handle to the waveform-audio input device. If the function succeeds, the handle is no longer valid after this call.


Return value:

Returns MMSYSERR_NOERROR (0) if successful or an error otherwise.


Comments:

If there are input buffers that have been sent with the waveInAddBuffer function and that haven"t been returned to the application, the close operation will fail. Call the waveInReset function to mark all pending buffers as done.