Question

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 the walking sound. What happens with this is it just plays the whole sound clip even when i stop moving.

Was it helpful?

Solution

Are you using the XACT_FLAG_STOP_IMMEDIATE flag?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top