Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.05 KB

waveOutClose.md

File metadata and controls

48 lines (32 loc) · 1.05 KB

Home

Function name : waveOutClose

Group: Windows Multimedia - Library: winmm


The waveOutClose function closes the given waveform-audio output device.


Code examples:

WAV file player
Playing WAV sounds simultaneously

Declaration:

MMRESULT waveOutClose(
  HWAVEOUT hwo
);  

FoxPro declaration:

DECLARE INTEGER waveOutClose IN winmm;
	INTEGER hwo  

Parameters:

hwo Handle to the waveform-audio output device. If the function succeeds, the handle is no longer valid after this call.


Return value:

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


Comments:

If the device is still playing a waveform-audio file, the close operation fails. Use the waveOutReset function to terminate playback before calling waveOutClose.