CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2006
    Posts
    3

    Question 'PlaySound' function and sound events

    Hello,
    I'm developing a program in VB6 where I need do play a wave file assinchronously and be 'advised' when the execution of the sound has finished (receiving an event).

    P.S.: Now I'm using the function PlaySound (winmm.lib) to play the wave file, but I don´t find a way to check if the sound have already been played entirelly or not.

    Any idea on how to do that?
    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: 'PlaySound' function and sound events

    Take a look at this example. It shows most uses of the API.
    Attached Files Attached Files
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Oct 2006
    Posts
    3

    Re: 'PlaySound' function and sound events

    Hi,
    I checked the example, and I really use PlaySound as indicated in that code. But I need to 'be advised' (event) when the assynchronous execution of the sound has finished.
    Any idea?
    Thanks!

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

Featured