PlaySound() laggage...

This is a discussion on PlaySound() laggage... within the Windows Programming forums, part of the Platform Specific Boards category; Hello, I have a problem with my PlaySound I have, I get it to work and everything, but when I ...

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    1

    PlaySound() laggage...

    Hello, I have a problem with my PlaySound I have, I get it to work and everything, but when I run the program, the sound plays, but the program doesn't appear 'till maybe a couple moments after the song has started to play, then the program appears and then it's still setting up. I don't know what is wrong with this, but is there a way to see if the program has loaded first then to play the song, other than WM_CREATE/WM_PAINT?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,755
    Well past a bit of the code which calls the play sound function.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. PlaySound doesn't play when called!
    By Queatrix in forum Windows Programming
    Replies: 7
    Last Post: 03-03-2006, 08:02 PM
  2. PlaySound error
    By Shadow12345 in forum Windows Programming
    Replies: 5
    Last Post: 10-02-2002, 08:10 AM
  3. PlaySound function & Console App
    By GaPe in forum Windows Programming
    Replies: 2
    Last Post: 06-26-2002, 01:25 PM
  4. about playsound()
    By Sekti in forum C++ Programming
    Replies: 0
    Last Post: 04-08-2002, 06:29 PM
  5. PlaySound();
    By tHaPuTeR in forum Windows Programming
    Replies: 2
    Last Post: 03-11-2002, 07:30 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21