开发者

Using XACT in C++/Direct X for a simple 2D game

I'm trying to take sound effects I have made and put them into my game. I have a sound like walking that I want to loop while the user is walking and once the user stops walking, I want the sound to stop. I went through the DirectX tutorials on using XACT but it does not answer my question. In my code I try to use the play function and when they are not moving i stop 开发者_StackOverflow社区the walking sound. What happens with this is it just plays the whole sound clip even when i stop moving.


Are you using the XACT_FLAG_STOP_IMMEDIATE flag?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜