Search code examples
c#audiowindows-phone-7windows-phone

How to programmatically determine system device sound settings?


I have to write a simple Silverlight app for WP7. If the phone is muted in system, the program must not play sounds, but if the phone is not muted the program must play sounds.

How to programmatically determine if Windows Phone is muted or not?


Solution

  • There is no need to do that, the system does not play any sounds when the phone is muted. The system setting overrides all other settings both in Silverlight and XNA (and in integrated Silverlight + XNA).