Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.14 KB

File metadata and controls

53 lines (36 loc) · 1.14 KB

Home

Function name : waveInUnprepareHeader

Group: Windows Multimedia - Library: winmm


The waveInUnprepareHeader function cleans up the preparation performed by the waveInPrepareHeader function. This function must be called after the device driver fills a buffer and returns it to the application. You must call this function before freeing the buffer.


Code examples:

Class for sound recording

Declaration:

MMRESULT waveInUnprepareHeader(
  HWAVEIN hwi,
  LPWAVEHDR pwh,
  UINT cbwh
);  

FoxPro declaration:

DECLARE INTEGER waveInUnprepareHeader IN winmm;
	INTEGER hwi,;
	INTEGER pwh,;
	LONG    cbwh
  

Parameters:

hwi Handle to the waveform-audio input device.

pwh Pointer to a WAVEHDR structure identifying the buffer to be cleaned up.

cbwh Size, in bytes, of the WAVEHDR structure.


Return value:

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