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?
精彩评论