开发者

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

开发者 https://www.devze.com 2023-02-28 22:40 出处:网络
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

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

精彩评论

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

关注公众号