Closing Waveform Audio Output Devices

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

After you have finished playing a waveform audio file and deallocating the header files that are associated with waveform audio file, call the waveOutClose function or waveInClose function to close the output device. If you call these functions while an application is still using a waveform audio file, the close operation fails and the function returns an error value that indicates that the device is not closed. If you do not want to wait for recording or playback to end before closing the device, call the waveOutReset function or the waveInReset function.

See Also

Concepts

Using the Waveform Audio Interface