Results 1 to 2 of 2

Thread: Sound Problem

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    45

    Sound Problem

    I found the post below from NoteMe (2002) regarding playing sounds.

    It works with one catch. It only plays the sound when I exit out of the execution. ??? It doesn't play during execution?

    Any ideas?

    Thanks in advance.


    -----------------------------------------------------
    Enter this in a code module:

    Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
    Public Const SND_ASYNC = &H1 ' play asynchronously


    and call it fram the form like this:

    sndPlaySound soundName, SND_ASYNC

    where soundName is a string holding the directory and filename of your wav file...
    ---------------------------------------------

  2. #2
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431
    Hmm, try putting a DoEvents right after the sndPlaySound dealie
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width