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