Group: Windows Multimedia - Library: winmm
The waveOutPrepareHeader function prepares a waveform-audio data block for playback with waveOutWrite function.
WAV file player
Playing WAV sounds simultaneously
MMRESULT waveOutPrepareHeader(
HWAVEOUT hwo,
LPWAVEHDR pwh,
UINT cbwh
); DECLARE INTEGER waveOutPrepareHeader IN winmm;
INTEGER hwo,;
STRING @ pwh,;
INTEGER cbwh
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.
Returns MMSYSERR_NOERROR (0) if successful or an error otherwise.
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
Home