home *** CD-ROM | disk | FTP | other *** search
- //***************************************************************************************
- //***************************************************************************************
- //* P L A Y S N D - A program for playing .WAV sound files specified at the command line*
- //* Uses sndPlaySound function of MMSYSTEM.DLL to play the sound *
- //* Asynchronously. sndPlaySound will begin playing the sound and the *
- //* program will exit immediately while the sound continues to play. *
- //* the sound can only be cancelled by playing another sound *
- //***************************************************************************************
- //***************************************************************************************
- #include <owl.h>
- #include <window.h>
- #include "mmsystem.h" // Header file for accessing MMSYSTEM.DLL
-
-
- //***************************************************************************************
- //***************************************************************************************
- // W I N M A I N -- The WinMain Function. *
- //***************************************************************************************
- //***************************************************************************************
- int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
- LPSTR lpCmdLine, int nCmdShow)
- {
-
- sndPlaySound(lpCmdLine,SND_ASYNC);
-
- }