SoundEffect Stopped Event?

karlhsc
karlhsc used Ask the Experts™
on
Hello,

I am using the XNA SoundEffect class to play a sound file in my Windows Phone 7 application.  I need for a method to fire when the sound reaches its end and is finished playing.  Is there an _Ended event that fires when the sound file is finished playing, or other way to accomplish this?

Thank you in advance.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
My main goal is to have the application play a certain sound X number of times.  
Top Expert 2011
Commented:
SEE THIS
Enable XNA Framework Events in Windows Phone Applications
http://msdn.microsoft.com/en-us/library/ff842408.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial