Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.24 KB

File metadata and controls

61 lines (41 loc) · 1.24 KB

Home

Function name : waveOutWrite

Group: Windows Multimedia - Library: winmm


The waveOutWrite function sends a data block to the given waveform-audio output device.


Code examples:

WAV file player
Playing WAV sounds simultaneously

Declaration:

MMRESULT waveOutWrite(
  HWAVEOUT hwo,
  LPWAVEHDR pwh,
  UINT cbwh
);  

FoxPro declaration:

DECLARE INTEGER waveOutWrite IN winmm;
	INTEGER   hwo,;
	STRING  @ pwh,;
	INTEGER   cbwh
  

Parameters:

hwo Handle to the waveform-audio output device.

pwh Pointer to a WAVEHDR structure containing information about the data block.

cbwh Size, in bytes, of the WAVEHDR structure.


Return value:

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


Comments:

The buffer must be prepared with the waveOutPrepareHeader function before it is passed to waveOutWrite.

When the buffer is finished, the WHDR_DONE bit is set in the dwFlags member of the WAVEHDR structure.