Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1016 Bytes

waveInAddBuffer.md

File metadata and controls

53 lines (36 loc) · 1016 Bytes

Home

Function name : waveInAddBuffer

Group: Windows Multimedia - Library: winmm


The waveInAddBuffer function sends an input buffer to the given waveform-audio input device. When the buffer is filled, the application is notified.


Code examples:

Class for sound recording

Declaration:

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

FoxPro declaration:

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

Parameters:

hwi Handle to the waveform-audio input device.

pwh Pointer to a WAVEHDR structure that identifies the buffer.

cbwh Size, in bytes, of the WAVEHDR structure.


Return value:

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