Check if system has sound C#

We are currently developing a game using XNA and we've stumbled upon a little sound problem.

When a system has no sound device plugged in (speakers, etc. -- when Win7 shows a red cross on the speaker icon) it crashes when trying to play/load the sound.

So, we would like to check if the system has the capacity of outputting sound. Is it possible in C#?

6
задан Jeff Yates 13 April 2011 в 14:36
поделиться