home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / playsn / playsnd.cpp next >
Encoding:
C/C++ Source or Header  |  1993-12-31  |  1.5 KB  |  26 lines

  1. //***************************************************************************************
  2. //***************************************************************************************
  3. //* P L A Y S N D - A program for playing .WAV sound files specified at the command line*
  4. //*                 Uses sndPlaySound function of MMSYSTEM.DLL to play the sound        *
  5. //*                 Asynchronously.  sndPlaySound will begin playing the sound and the  *
  6. //*                 program will exit immediately while the sound continues to play.    *
  7. //*                 the sound can only be cancelled by playing another sound            *
  8. //***************************************************************************************
  9. //***************************************************************************************
  10. #include <owl.h>
  11. #include <window.h>
  12. #include "mmsystem.h"   // Header file for accessing MMSYSTEM.DLL
  13.  
  14.  
  15. //***************************************************************************************
  16. //***************************************************************************************
  17. // W I N M A I N -- The WinMain Function.                                               *
  18. //***************************************************************************************
  19. //***************************************************************************************
  20. int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
  21.   LPSTR lpCmdLine, int nCmdShow)
  22. {
  23.      
  24.   sndPlaySound(lpCmdLine,SND_ASYNC);
  25.   
  26. }