开发者

Sounds effect in Windows

开发者 https://www.devze.com 2023-02-23 01:53 出处:网络
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 whil

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

精彩评论

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