Nicolas L

Hi, I've been developping a game recently and I'm having major trouble sith sound. I am pretty much using the code from the XNA Framework audio sample. So I can't imagine what's wrong with that code.

The problem is that I'm getting intermittent clips being played. Some don't even play at all when I call the Sound.Play method, some play but stop before the end on the clip, sometimes they play fully. This does not happen rarely, I'd say this is about 50% of the time and more often on longer clips. The only one sound I've got that seems to play correctly is a clip that I am looping (alarm sound), which is of lower quality 8KHz vs 44.1KHz for the other ones.

So that's basically it, I'm using XACT V2.0. I tried following the instructions as well as I could.

Any suggestions will be greatly appreciated.

Thank you.

Nic



Re: Game Technologies: Audio / XACT Intermittent Audio Problem

Nicolas L

Well oddly enough, I've been looking at this problem for a long time now and finally I decide to post my question only to find the answer 30 minutes later. I was not keeping my cues in a variable so I figure garbage collection was getting rid of it before the sound was completely played. It's all fixed now.

Nic





Re: Game Technologies: Audio / XACT Intermittent Audio Problem

twonjosh

I had the same problem. Thanks for figuring it out since it would have took me a while. lol




Re: Game Technologies: Audio / XACT Intermittent Audio Problem

Nicolas L

You're welcome.

Nic