Thread: PlaySound() laggage...

  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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

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, 07:10 AM
  3. PlaySound function & Console App
    By GaPe in forum Windows Programming
    Replies: 2
    Last Post: 06-26-2002, 12:25 PM
  4. about playsound()
    By Sekti in forum C++ Programming
    Replies: 0
    Last Post: 04-08-2002, 05:29 PM
  5. PlaySound();
    By tHaPuTeR in forum Windows Programming
    Replies: 2
    Last Post: 03-11-2002, 07:30 AM