Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Quick question:

I have a SoundEffect instance, and I would like to know if it is playing at the moment or not. But there's neither a method, nor a property that would allow to check it...

So, is there a way to know it?

share|improve this question
up vote 7 down vote accepted

Found the answer myself :)

Apparently you have to do this:

SoundEffectInstance qwe = yourSound.CreateInstance();
qwe.State ...

And that state will contain... well, the state of the sound. Also SoundEffectInstance countains bunch of other useful data.

share|improve this answer
Yes, you have to create instances, this way you have more control of your sounds. And also, can you accept your own answer? For marking it as answered. – Gustavo Maciel Sep 27 '12 at 0:44
@GustavoMaciel done :) – NewProger Oct 7 '12 at 8:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.