home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 93win / data1.cab / DLL_Toolkit / Source / HTBWav / HTBwav.cpp next >
Encoding:
C/C++ Source or Header  |  2005-03-02  |  526 b   |  24 lines

  1. //    HTBwav DLL
  2. //
  3. //  1/18/00
  4. //
  5. //    High Tech BASIC, Copyright (C) TransEra Corp 2000, All Rights Reserved.
  6.  
  7.  
  8. #include <windows.h>
  9.  
  10.  
  11. // Function name    : Playwav
  12. // Description        : Play Wav files
  13. // Return type        : void 
  14. // Argument         : char * file -- the wav file to play
  15. // Argument         : int wait -- synchronous or asynchronous
  16. void Playwav(char * pFile, int wait)
  17. {
  18.     if (wait)
  19.     {    PlaySound(pFile,NULL,SND_FILENAME | SND_SYNC);
  20.     }
  21.     else
  22.     {    PlaySound(pFile,NULL,SND_FILENAME | SND_ASYNC);
  23.     }
  24. }