
P L A Y S N D - A program for playing .WAV sound files specified at the command line.

This program plays the .WAV sound file named on its command line.  The main purpose of 
this program is to use it with File Manager as a quick way to peruse a directory full of 
.WAV files.  It can also be used to create an icon in program manager that plays a specific
.WAV file when double-clicked (good for testing the sound hardware, if nothing else).  Includes
C source (all 26 lines!), which works with Borland C++ 3.1 (though it should work with any C
compiler with Windows API function library).

Released to the public domain.  Or you can send me nineteen cents if you find it useful.

Uploaded by the author.    Kevin Petrasek [76530,540]

PLAYSND uses the sndPlaySound() function of MMSYSTEM.DLL to play the sound asynchronously, so
you can go on using Windows while the sound is playing.

The sndPlaySound() will begin playing the sound and the program will exit immediately.
The sound will continue to play to completion, even though the program is gone.
The sound can only be cancelled by playing another wave file (for instance, a windows event
with an attached sound will override the sound being played).  If another application wishes
to use the sound hardware without using MMSYSTEM.DLL, an error will be generated until the 
sound has completed.

To use with File Manager, just highlight a .WAV file anywhere on your disk, then choose the
"Associate" option on File Manager's File menu.  The dialog box should say WAV next to
"Files with Extension:".  In the "Associate with:" box, type the drive, path, and filename
you have used for PLAYSND.EXE. (for example C:\UTILS\PLAYSND.EXE).  Optionally, you can use
the browse button to go find the PLAYSND.EXE file.  Once this is done, just hit OK.  Now you
can double-click on any .WAV file in File Manager and you'll hear what it sounds like.

You can create an icon (or many icons) in Program Manager for PLAYSND by selecting
"FILE", "NEW", "Program Item" in program manager, or by highlighting PLAYSND.EXE in File
Manager and dragging it into a group window in the Program Manger.  It is most convenient to
specify the directory in which you keep .WAV files in the program properties dialog's
"working directory" box.  Then you can just put the specific sound file name on the
"command line" after PLAYSND.EXE.  Of course, you can name the icon anything you want. 

	For example:
		Command Line:      C:\UTILS\PLAYSND.EXE CHIMES.WAV
		Working Directory: C:\SOUND\WAVES

	Will cause the wave file CHIMES.WAV, found in the C:\SOUND\WAVES directory
	to be played each time the icon is double-clicked.


 