COXSound class

This sample program shows most of the functionality of the COXSound class. Several WAVE resources and the ability to load WAVE files are included with the sample program. You may also set the async and loop flags used to play sounds. 

Click on a radio button to select how a sound is loaded (from file versus from a resource). Another method allows you to load a wave from a CFile* object, but is not demonstrated in the sample program. If a wave file is selected, the "Open" pushbutton brings up a File Open dialog to select a wave file. Once a valid wave is loaded, the Play button may be pressed to play the sound. If the async checkbox is selected, the wave will be played asynchronously. When a wave is played using the sample program, the "play" pushbutton is disabled until the sound stops playing. For sounds that are playing asynchronously, the "stop" pushbutton may be pressed to stop a wave before completion.

The COXSound class is an easy way to have an application play WAVE sounds. WAVES can be loaded from WAVE files (*.wav), WAVE resources or streamed in from a CFile object. Once a wave is loaded it may be played either synchronously or asynchronously. In the case of the latter, the sound may be looped.
Features:
•	Can load WAVE sounds from wave files, resources or streamed from CFile objects 
•	Can play sounds in sync or async mode 
•	Supports the querying of the current playback position 
•	Can notify a CWnd object when async playback is complete or when the sound loops 
•	Provides easy-to-use class for adding wave sound effects to an application 
•	Uses standard Windows multimedia calls for playing waves