Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.31 KB

File metadata and controls

61 lines (41 loc) · 1.31 KB

Home

Function name : waveOutPrepareHeader

Group: Windows Multimedia - Library: winmm


The waveOutPrepareHeader function prepares a waveform-audio data block for playback with waveOutWrite function.


Code examples:

WAV file player
Playing WAV sounds simultaneously

Declaration:

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

FoxPro declaration:

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

Parameters:

hwo Handle to the waveform-audio output device.

pwh Pointer to a WAVEHDR structure that identifies the data block to be prepared.

cbwh Size, in bytes, of the WAVEHDR structure.


Return value:

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


Comments:

The lpData, dwBufferLength, and dwFlags members of the WAVEHDR structure must be set before calling this function (dwFlags must be zero).

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