home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / p / ptv3n5.zip / VBWAVE.ZIP / PLAYSND.TXT < prev    next >
Text File  |  1992-10-14  |  1KB  |  22 lines

  1. '--------------------------------------------------------------------
  2. '                            sndPlaySound
  3. '--------------------------------------------------------------------
  4. ' Listing 1 -- This file can be merged with your global module
  5. ' It contains the necessary Declare statement and Const
  6. ' definitions for the sndPlaySound function.
  7. Declare Function sndPlaySound Lib "mmsystem"
  8.   (ByVal lpszSoundName As String, ByVal uFlags As Integer) As Integer
  9.  
  10. ' Values for wFlags parameter
  11. Global Const SND_SYNC = &H0     ' Play Synchronously (default)
  12. Global Const SND_ASYNC = &H1    ' Play Asynchronously
  13. Global Const SND_NODEFAULT = &H2' Don't use default sound if
  14.                                 '  requested sound can't be found
  15. Global Const SND_MEMORY = &H4   ' lpszSoundName Points to a
  16.                                 '  Memory File
  17. Global Const SND_LOOP = &H8     ' Play sound continuously until
  18.                                 '  next sndPlaySound
  19. Global Const SND_NOSTOP = &H10  ' Don't stop any currently
  20.                                 '  playing sound
  21.  
  22.