开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜