Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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?
Found the answer myself :)
Apparently you have to do this:
SoundEffectInstance qwe = yourSound.CreateInstance();
And that state will contain... well, the state of the sound.
Also SoundEffectInstance countains bunch of other useful data.