home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / playsn / readme.txt < prev   
Encoding:
Text File  |  1993-12-31  |  2.6 KB  |  47 lines

  1.  
  2. P L A Y S N D - A program for playing .WAV sound files specified at the command line.
  3.  
  4. This program plays the .WAV sound file named on its command line.  The main purpose of 
  5. this program is to use it with File Manager as a quick way to peruse a directory full of 
  6. .WAV files.  It can also be used to create an icon in program manager that plays a specific
  7. .WAV file when double-clicked (good for testing the sound hardware, if nothing else).  Includes
  8. C source (all 26 lines!), which works with Borland C++ 3.1 (though it should work with any C
  9. compiler with Windows API function library).
  10.  
  11. Released to the public domain.  Or you can send me nineteen cents if you find it useful.
  12.  
  13. Uploaded by the author.    Kevin Petrasek [76530,540]
  14.  
  15. PLAYSND uses the sndPlaySound() function of MMSYSTEM.DLL to play the sound asynchronously, so
  16. you can go on using Windows while the sound is playing.
  17.  
  18. The sndPlaySound() will begin playing the sound and the program will exit immediately.
  19. The sound will continue to play to completion, even though the program is gone.
  20. The sound can only be cancelled by playing another wave file (for instance, a windows event
  21. with an attached sound will override the sound being played).  If another application wishes
  22. to use the sound hardware without using MMSYSTEM.DLL, an error will be generated until the 
  23. sound has completed.
  24.  
  25. To use with File Manager, just highlight a .WAV file anywhere on your disk, then choose the
  26. "Associate" option on File Manager's File menu.  The dialog box should say WAV next to
  27. "Files with Extension:".  In the "Associate with:" box, type the drive, path, and filename
  28. you have used for PLAYSND.EXE. (for example C:\UTILS\PLAYSND.EXE).  Optionally, you can use
  29. the browse button to go find the PLAYSND.EXE file.  Once this is done, just hit OK.  Now you
  30. can double-click on any .WAV file in File Manager and you'll hear what it sounds like.
  31.  
  32. You can create an icon (or many icons) in Program Manager for PLAYSND by selecting
  33. "FILE", "NEW", "Program Item" in program manager, or by highlighting PLAYSND.EXE in File
  34. Manager and dragging it into a group window in the Program Manger.  It is most convenient to
  35. specify the directory in which you keep .WAV files in the program properties dialog's
  36. "working directory" box.  Then you can just put the specific sound file name on the
  37. "command line" after PLAYSND.EXE.  Of course, you can name the icon anything you want. 
  38.  
  39.     For example:
  40.         Command Line:      C:\UTILS\PLAYSND.EXE CHIMES.WAV
  41.         Working Directory: C:\SOUND\WAVES
  42.  
  43.     Will cause the wave file CHIMES.WAV, found in the C:\SOUND\WAVES directory
  44.     to be played each time the icon is double-clicked.
  45.  
  46.  
  47.