Sounds effect in Windows
I am making a simple game.I am hitting a ball with my gun.When bullet will collide with ball it should give sound effect.Whether i hae done this but during sound effect my game becomes hold for a while.I don开发者_C百科't want to keep in hold with sound effect.Below is the code for sound effect.
PlaySound("Data/Die.wav", NULL, SND_SYNC); // Play The Death Sound
Use SND_ASYNC
not SND_SYNC
精彩评论