The waveOutClose function closes the given waveform-audio output device.
MMRESULT waveOutClose( HWAVEOUT hwo );
Handle to the waveform-audio output device. If the function succeeds, the handle is no longer valid after this call.
Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following.
||Specified device handle is invalid.|
||No device driver is present.|
||Unable to allocate or lock memory.|
||There are still buffers in the queue.|
The close operation fails if the device is still playing a waveform-audio buffer that was previously sent by calling waveOutWrite. Before calling waveOutClose, the application must wait for all buffers to finish playing or call the waveOutReset function to terminate playback.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||mmeapi.h (include Windows.h)|